DDraceNetwork Docs
|
#include <jsonwriter.h>
Classes | |
struct | SState |
Public Member Functions | |
CJsonWriter () | |
virtual | ~CJsonWriter ()=default |
void | BeginObject () |
void | EndObject () |
void | BeginArray () |
void | EndArray () |
void | WriteAttribute (const char *pName) |
void | WriteStrValue (const char *pValue) |
void | WriteIntValue (int Value) |
void | WriteBoolValue (bool Value) |
void | WriteNullValue () |
Protected Member Functions | |
virtual void | WriteInternal (const char *pStr, int Length=-1)=0 |
Private Types | |
enum | EJsonStateKind { STATE_OBJECT , STATE_ARRAY , STATE_ATTRIBUTE } |
Private Member Functions | |
bool | CanWriteDatatype () |
void | WriteInternalEscaped (const char *pStr) |
void | WriteIndent (bool EndElement) |
void | PushState (EJsonStateKind NewState) |
SState * | TopState () |
EJsonStateKind | PopState () |
void | CompleteDataType () |
Private Attributes | |
std::stack< SState > | m_States |
int | m_Indentation |
JSON writer with abstract writing function.
|
private |
CJsonWriter::CJsonWriter | ( | ) |
|
virtualdefault |
void CJsonWriter::BeginArray | ( | ) |
void CJsonWriter::BeginObject | ( | ) |
|
private |
|
private |
void CJsonWriter::EndArray | ( | ) |
void CJsonWriter::EndObject | ( | ) |
|
private |
|
private |
|
private |
void CJsonWriter::WriteAttribute | ( | const char * | pName | ) |
void CJsonWriter::WriteBoolValue | ( | bool | Value | ) |
|
private |
|
protectedpure virtual |
Implemented in CJsonFileWriter, and CJsonStringWriter.
|
private |
void CJsonWriter::WriteIntValue | ( | int | Value | ) |
void CJsonWriter::WriteNullValue | ( | ) |
void CJsonWriter::WriteStrValue | ( | const char * | pValue | ) |
|
private |
|
private |