3#ifndef ENGINE_SHARED_JSONWRITER_H
4#define ENGINE_SHARED_JSONWRITER_H
90 void WriteInternal(
const char *pStr,
int Length = -1)
override;
110 void WriteInternal(
const char *pStr,
int Length = -1)
override;
CJsonFileWriter(IOHANDLE IO)
Definition jsonwriter.cpp:208
~CJsonFileWriter() override
Definition jsonwriter.cpp:214
IOHANDLE m_IO
Definition jsonwriter.h:87
void WriteInternal(const char *pStr, int Length=-1) override
Definition jsonwriter.cpp:221
std::string && GetOutputString()
Definition jsonwriter.cpp:232
~CJsonStringWriter() override=default
std::string m_OutputString
Definition jsonwriter.h:106
void WriteInternal(const char *pStr, int Length=-1) override
Definition jsonwriter.cpp:226
bool m_RetrievedOutput
Definition jsonwriter.h:107
CJsonStringWriter()=default
void WriteIndent(bool EndElement)
Definition jsonwriter.cpp:153
virtual void WriteInternal(const char *pStr, int Length=-1)=0
void CompleteDataType()
Definition jsonwriter.cpp:199
void WriteInternalEscaped(const char *pStr)
Definition jsonwriter.cpp:112
SState * TopState()
Definition jsonwriter.cpp:181
void PushState(EJsonStateKind NewState)
Definition jsonwriter.cpp:168
void WriteIntValue(int Value)
Definition jsonwriter.cpp:81
int m_Indentation
Definition jsonwriter.h:35
virtual ~CJsonWriter()=default
std::stack< SState > m_States
Definition jsonwriter.h:34
void WriteAttribute(const char *pName)
Definition jsonwriter.cpp:64
void WriteBoolValue(bool Value)
Definition jsonwriter.cpp:91
CJsonWriter()
Definition jsonwriter.cpp:25
void BeginArray()
Definition jsonwriter.cpp:47
void BeginObject()
Definition jsonwriter.cpp:30
EJsonStateKind PopState()
Definition jsonwriter.cpp:187
void WriteStrValue(const char *pValue)
Definition jsonwriter.cpp:73
void EndObject()
Definition jsonwriter.cpp:38
void WriteNullValue()
Definition jsonwriter.cpp:99
void EndArray()
Definition jsonwriter.cpp:55
bool CanWriteDatatype()
Definition jsonwriter.cpp:107
EJsonStateKind
Definition jsonwriter.h:17
@ STATE_ARRAY
Definition jsonwriter.h:19
@ STATE_ATTRIBUTE
Definition jsonwriter.h:20
@ STATE_OBJECT
Definition jsonwriter.h:18
void * IOHANDLE
Definition logger.h:12
Definition jsonwriter.h:24
bool m_Empty
Definition jsonwriter.h:26
EJsonStateKind m_Kind
Definition jsonwriter.h:25
SState(EJsonStateKind Kind)
Definition jsonwriter.h:28