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;
Definition: jsonwriter.h:86
CJsonFileWriter(IOHANDLE IO)
Definition: jsonwriter.cpp:206
~CJsonFileWriter()
Definition: jsonwriter.cpp:212
IOHANDLE m_IO
Definition: jsonwriter.h:87
void WriteInternal(const char *pStr, int Length=-1) override
Definition: jsonwriter.cpp:219
Definition: jsonwriter.h:105
std::string && GetOutputString()
Definition: jsonwriter.cpp:230
std::string m_OutputString
Definition: jsonwriter.h:106
void WriteInternal(const char *pStr, int Length=-1) override
Definition: jsonwriter.cpp:224
bool m_RetrievedOutput
Definition: jsonwriter.h:107
CJsonStringWriter()=default
~CJsonStringWriter()=default
Definition: jsonwriter.h:15
void WriteIndent(bool EndElement)
Definition: jsonwriter.cpp:151
virtual void WriteInternal(const char *pStr, int Length=-1)=0
void CompleteDataType()
Definition: jsonwriter.cpp:197
void WriteInternalEscaped(const char *pStr)
Definition: jsonwriter.cpp:110
SState * TopState()
Definition: jsonwriter.cpp:179
void PushState(EJsonStateKind NewState)
Definition: jsonwriter.cpp:166
void WriteIntValue(int Value)
Definition: jsonwriter.cpp:79
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:62
void WriteBoolValue(bool Value)
Definition: jsonwriter.cpp:89
CJsonWriter()
Definition: jsonwriter.cpp:23
void BeginArray()
Definition: jsonwriter.cpp:45
void BeginObject()
Definition: jsonwriter.cpp:28
EJsonStateKind PopState()
Definition: jsonwriter.cpp:185
void WriteStrValue(const char *pValue)
Definition: jsonwriter.cpp:71
void EndObject()
Definition: jsonwriter.cpp:36
void WriteNullValue()
Definition: jsonwriter.cpp:97
void EndArray()
Definition: jsonwriter.cpp:53
bool CanWriteDatatype()
Definition: jsonwriter.cpp:105
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:11
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