DDraceNetwork Docs
CJsonFileWriter Class Reference

#include <jsonwriter.h>

Inheritance diagram for CJsonFileWriter:
[legend]
Collaboration diagram for CJsonFileWriter:
[legend]

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
 

Detailed Description

Writes JSON to a file.

Constructor & Destructor Documentation

◆ CJsonFileWriter()

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::~CJsonFileWriter ( )

Member Function Documentation

◆ WriteInternal()

void CJsonFileWriter::WriteInternal ( const char *  pStr,
int  Length = -1 
)
overrideprotectedvirtual

Implements CJsonWriter.

Member Data Documentation

◆ m_IO

IOHANDLE CJsonFileWriter::m_IO
private

The documentation for this class was generated from the following files: