mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
29 lines
823 B
C++
29 lines
823 B
C++
#pragma once
|
|
|
|
#include "Zone/Stream/IZoneOutputStream.h"
|
|
#include "Zone/Zone.h"
|
|
|
|
class ContentWriterBase
|
|
{
|
|
protected:
|
|
explicit ContentWriterBase(const Zone& zone);
|
|
ContentWriterBase(const Zone& zone, IZoneOutputStream& stream);
|
|
|
|
public:
|
|
virtual ~ContentWriterBase() = default;
|
|
ContentWriterBase(const ContentWriterBase& other) = default;
|
|
ContentWriterBase(ContentWriterBase&& other) noexcept = default;
|
|
ContentWriterBase& operator=(const ContentWriterBase& other) = default;
|
|
ContentWriterBase& operator=(ContentWriterBase&& other) noexcept = default;
|
|
|
|
protected:
|
|
void WriteXString(bool atStreamStart);
|
|
void WriteXStringArray(bool atStreamStart, size_t count);
|
|
|
|
const Zone& m_zone;
|
|
IZoneOutputStream* m_stream;
|
|
|
|
const char** varXString;
|
|
const char** varXStringWritten;
|
|
};
|