RetroArch
Public Member Functions | Private Member Functions | Private Attributes | List of all members
JsonxWriter< OutputStream > Class Template Reference
Collaboration diagram for JsonxWriter< OutputStream >:
[legend]

Public Member Functions

 JsonxWriter (OutputStream &os)
 
bool Null ()
 
bool Bool (bool b)
 
bool Int (int i)
 
bool Uint (unsigned i)
 
bool Int64 (int64_t i)
 
bool Uint64 (uint64_t i)
 
bool Double (double d)
 
bool RawNumber (const char *str, SizeType length, bool)
 
bool String (const char *str, SizeType length, bool)
 
bool StartObject ()
 
bool Key (const char *str, SizeType length, bool)
 
bool EndObject (SizeType)
 
bool StartArray ()
 
bool EndArray (SizeType)
 

Private Member Functions

bool WriteString (const char *s)
 
bool WriteEscapedAttributeValue (const char *s, size_t length)
 
bool WriteEscapedText (const char *s, size_t length)
 
bool WriteStartElement (const char *type, bool emptyElement=false)
 
bool WriteEndElement (const char *type)
 
bool WriteNumberElement (const char *buffer, int length)
 

Private Attributes

OutputStream & os_
 
StringBuffer name_
 
unsigned level_
 
bool hasName_
 

Constructor & Destructor Documentation

◆ JsonxWriter()

template<typename OutputStream>
JsonxWriter< OutputStream >::JsonxWriter ( OutputStream &  os)
inline

Member Function Documentation

◆ Bool()

template<typename OutputStream>
bool JsonxWriter< OutputStream >::Bool ( bool  b)
inline

◆ Double()

template<typename OutputStream>
bool JsonxWriter< OutputStream >::Double ( double  d)
inline
Here is the call graph for this function:

◆ EndArray()

template<typename OutputStream>
bool JsonxWriter< OutputStream >::EndArray ( SizeType  )
inline

◆ EndObject()

template<typename OutputStream>
bool JsonxWriter< OutputStream >::EndObject ( SizeType  )
inline

◆ Int()

template<typename OutputStream>
bool JsonxWriter< OutputStream >::Int ( int  i)
inline
Here is the call graph for this function:

◆ Int64()

template<typename OutputStream>
bool JsonxWriter< OutputStream >::Int64 ( int64_t  i)
inline
Here is the call graph for this function:

◆ Key()

template<typename OutputStream>
bool JsonxWriter< OutputStream >::Key ( const char *  str,
SizeType  length,
bool   
)
inline

◆ Null()

template<typename OutputStream>
bool JsonxWriter< OutputStream >::Null ( )
inline

◆ RawNumber()

template<typename OutputStream>
bool JsonxWriter< OutputStream >::RawNumber ( const char *  str,
SizeType  length,
bool   
)
inline

◆ StartArray()

template<typename OutputStream>
bool JsonxWriter< OutputStream >::StartArray ( )
inline

◆ StartObject()

template<typename OutputStream>
bool JsonxWriter< OutputStream >::StartObject ( )
inline

◆ String()

template<typename OutputStream>
bool JsonxWriter< OutputStream >::String ( const char *  str,
SizeType  length,
bool   
)
inline

◆ Uint()

template<typename OutputStream>
bool JsonxWriter< OutputStream >::Uint ( unsigned  i)
inline
Here is the call graph for this function:

◆ Uint64()

template<typename OutputStream>
bool JsonxWriter< OutputStream >::Uint64 ( uint64_t  i)
inline
Here is the call graph for this function:

◆ WriteEndElement()

template<typename OutputStream>
bool JsonxWriter< OutputStream >::WriteEndElement ( const char *  type)
inlineprivate

◆ WriteEscapedAttributeValue()

template<typename OutputStream>
bool JsonxWriter< OutputStream >::WriteEscapedAttributeValue ( const char *  s,
size_t  length 
)
inlineprivate

◆ WriteEscapedText()

template<typename OutputStream>
bool JsonxWriter< OutputStream >::WriteEscapedText ( const char *  s,
size_t  length 
)
inlineprivate

◆ WriteNumberElement()

template<typename OutputStream>
bool JsonxWriter< OutputStream >::WriteNumberElement ( const char *  buffer,
int  length 
)
inlineprivate

◆ WriteStartElement()

template<typename OutputStream>
bool JsonxWriter< OutputStream >::WriteStartElement ( const char *  type,
bool  emptyElement = false 
)
inlineprivate

◆ WriteString()

template<typename OutputStream>
bool JsonxWriter< OutputStream >::WriteString ( const char *  s)
inlineprivate

Member Data Documentation

◆ hasName_

template<typename OutputStream>
bool JsonxWriter< OutputStream >::hasName_
private

◆ level_

template<typename OutputStream>
unsigned JsonxWriter< OutputStream >::level_
private

◆ name_

template<typename OutputStream>
StringBuffer JsonxWriter< OutputStream >::name_
private

◆ os_

template<typename OutputStream>
OutputStream& JsonxWriter< OutputStream >::os_
private

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