DDraceNetwork Docs
CJsonStringWriter Class Reference

#include <jsonwriter.h>

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

Public Member Functions

 CJsonStringWriter ()=default
 
 ~CJsonStringWriter ()=default
 
std::string && GetOutputString ()
 
- 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

std::string m_OutputString
 
bool m_RetrievedOutput = false
 

Detailed Description

Writes JSON to an std::string.

Constructor & Destructor Documentation

◆ CJsonStringWriter()

CJsonStringWriter::CJsonStringWriter ( )
default

◆ ~CJsonStringWriter()

CJsonStringWriter::~CJsonStringWriter ( )
default

Member Function Documentation

◆ GetOutputString()

std::string && CJsonStringWriter::GetOutputString ( )

◆ WriteInternal()

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

Implements CJsonWriter.

Member Data Documentation

◆ m_OutputString

std::string CJsonStringWriter::m_OutputString
private

◆ m_RetrievedOutput

bool CJsonStringWriter::m_RetrievedOutput = false
private

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