cxxtools::JsonFormatter Class Reference

#include <cxxtools/jsonformatter.h>

Inheritance diagram for cxxtools::JsonFormatter:
cxxtools::Formatter

Public Member Functions

 JsonFormatter ()
 JsonFormatter (std::basic_ostream< cxxtools::Char > &ts)
void begin (std::basic_ostream< cxxtools::Char > &ts)
void finish ()
virtual void addValueString (const std::string &name, const std::string &type, const String &value)
virtual void addValueStdString (const std::string &name, const std::string &type, const std::string &value)
virtual void addValueBool (const std::string &name, const std::string &type, bool value)
virtual void addValueInt (const std::string &name, const std::string &type, int_type value)
virtual void addValueUnsigned (const std::string &name, const std::string &type, unsigned_type value)
virtual void addValueFloat (const std::string &name, const std::string &type, long double value)
virtual void addNull (const std::string &name, const std::string &type)
virtual void beginArray (const std::string &name, const std::string &type)
virtual void finishArray ()
virtual void beginObject (const std::string &name, const std::string &type)
virtual void beginMember (const std::string &name)
virtual void finishMember ()
virtual void finishObject ()
bool beautify () const
void beautify (bool sw)
bool plainkey () const
void plainkey (bool sw)
void beginValue (const std::string &name)
void finishValue ()
- Public Member Functions inherited from cxxtools::Formatter
virtual ~Formatter ()

Additional Inherited Members

- Public Types inherited from cxxtools::Formatter
typedef long int_type
typedef unsigned long unsigned_type
- Protected Member Functions inherited from cxxtools::Formatter
 Formatter ()

Constructor & Destructor Documentation

cxxtools::JsonFormatter::JsonFormatter ( )
inline
cxxtools::JsonFormatter::JsonFormatter ( std::basic_ostream< cxxtools::Char > &  ts)
inlineexplicit

Member Function Documentation

virtual void cxxtools::JsonFormatter::addNull ( const std::string &  name,
const std::string &  type 
)
virtual

Reimplemented from cxxtools::Formatter.

virtual void cxxtools::JsonFormatter::addValueBool ( const std::string &  name,
const std::string &  type,
bool  value 
)
virtual

Reimplemented from cxxtools::Formatter.

virtual void cxxtools::JsonFormatter::addValueFloat ( const std::string &  name,
const std::string &  type,
long double  value 
)
virtual

Reimplemented from cxxtools::Formatter.

virtual void cxxtools::JsonFormatter::addValueInt ( const std::string &  name,
const std::string &  type,
int_type  value 
)
virtual

Reimplemented from cxxtools::Formatter.

virtual void cxxtools::JsonFormatter::addValueStdString ( const std::string &  name,
const std::string &  type,
const std::string &  value 
)
virtual

Reimplemented from cxxtools::Formatter.

virtual void cxxtools::JsonFormatter::addValueString ( const std::string &  name,
const std::string &  type,
const String value 
)
virtual

Implements cxxtools::Formatter.

virtual void cxxtools::JsonFormatter::addValueUnsigned ( const std::string &  name,
const std::string &  type,
unsigned_type  value 
)
virtual

Reimplemented from cxxtools::Formatter.

bool cxxtools::JsonFormatter::beautify ( ) const
inline
void cxxtools::JsonFormatter::beautify ( bool  sw)
inline
void cxxtools::JsonFormatter::begin ( std::basic_ostream< cxxtools::Char > &  ts)
virtual void cxxtools::JsonFormatter::beginArray ( const std::string &  name,
const std::string &  type 
)
virtual

Implements cxxtools::Formatter.

virtual void cxxtools::JsonFormatter::beginMember ( const std::string &  name)
virtual

Implements cxxtools::Formatter.

virtual void cxxtools::JsonFormatter::beginObject ( const std::string &  name,
const std::string &  type 
)
virtual

Implements cxxtools::Formatter.

void cxxtools::JsonFormatter::beginValue ( const std::string &  name)
void cxxtools::JsonFormatter::finish ( )
virtual

Implements cxxtools::Formatter.

virtual void cxxtools::JsonFormatter::finishArray ( )
virtual

Implements cxxtools::Formatter.

virtual void cxxtools::JsonFormatter::finishMember ( )
virtual

Implements cxxtools::Formatter.

virtual void cxxtools::JsonFormatter::finishObject ( )
virtual

Implements cxxtools::Formatter.

void cxxtools::JsonFormatter::finishValue ( )
bool cxxtools::JsonFormatter::plainkey ( ) const
inline
void cxxtools::JsonFormatter::plainkey ( bool  sw)
inline

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