DDraceNetwork Docs
|
#include <jsonwriter.h>
Public Member Functions | |
CJsonFileWriter (IOHANDLE IO) | |
~CJsonFileWriter () | |
Public Member Functions inherited from CJsonWriter | |
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 | |
void | WriteInternal (const char *pStr, int Length=-1) override |
virtual void | WriteInternal (const char *pStr, int Length=-1)=0 |
Private Attributes | |
IOHANDLE | m_IO |
Writes JSON to a file.
CJsonFileWriter::CJsonFileWriter | ( | IOHANDLE | IO | ) |
Create a new writer object without writing anything to the file yet. The file will automatically be closed by the destructor.
CJsonFileWriter::~CJsonFileWriter | ( | ) |
|
overrideprotectedvirtual |
Implements CJsonWriter.
|
private |