Public Member Functions | Private Member Functions | Private Attributes | List of all members
JsonxWriter< OutputStream > Class Template Reference

Public Member Functions

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

Private Member Functions

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

Private Attributes

bool hasName_
 
unsigned level_
 
StringBuffer name_
 
OutputStream & os_
 

Detailed Description

template<typename OutputStream>
class JsonxWriter< OutputStream >

Definition at line 19 of file jsonx.cpp.

Constructor & Destructor Documentation

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

Definition at line 21 of file jsonx.cpp.

Member Function Documentation

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

Definition at line 28 of file jsonx.cpp.

template<typename OutputStream>
bool JsonxWriter< OutputStream >::Double ( double  d)
inline

Definition at line 55 of file jsonx.cpp.

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

Definition at line 95 of file jsonx.cpp.

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

Definition at line 87 of file jsonx.cpp.

template<typename OutputStream>
bool JsonxWriter< OutputStream >::Int ( int  i)
inline

Definition at line 35 of file jsonx.cpp.

template<typename OutputStream>
bool JsonxWriter< OutputStream >::Int64 ( int64_t  i)
inline

Definition at line 45 of file jsonx.cpp.

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

Definition at line 78 of file jsonx.cpp.

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

Definition at line 24 of file jsonx.cpp.

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

Definition at line 60 of file jsonx.cpp.

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

Definition at line 91 of file jsonx.cpp.

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

Definition at line 74 of file jsonx.cpp.

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

Definition at line 67 of file jsonx.cpp.

template<typename OutputStream>
bool JsonxWriter< OutputStream >::Uint ( unsigned  i)
inline

Definition at line 40 of file jsonx.cpp.

template<typename OutputStream>
bool JsonxWriter< OutputStream >::Uint64 ( uint64_t  i)
inline

Definition at line 50 of file jsonx.cpp.

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

Definition at line 162 of file jsonx.cpp.

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

Definition at line 106 of file jsonx.cpp.

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

Definition at line 118 of file jsonx.cpp.

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

Definition at line 175 of file jsonx.cpp.

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

Definition at line 129 of file jsonx.cpp.

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

Definition at line 100 of file jsonx.cpp.

Member Data Documentation

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

Definition at line 186 of file jsonx.cpp.

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

Definition at line 185 of file jsonx.cpp.

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

Definition at line 184 of file jsonx.cpp.

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

Definition at line 183 of file jsonx.cpp.


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


choreo_rapidjson
Author(s):
autogenerated on Thu Jul 18 2019 03:59:10