cxxtools::JsonSerializer Class Reference

#include <cxxtools/jsonserializer.h>

Inheritance diagram for cxxtools::JsonSerializer:
cxxtools::NonCopyable

Public Member Functions

 JsonSerializer ()
 JsonSerializer (std::basic_ostream< cxxtools::Char > &ts)
 JsonSerializer (std::ostream &os, TextCodec< cxxtools::Char, char > *codec=0)
 ~JsonSerializer ()
JsonSerializerbegin (std::basic_ostream< cxxtools::Char > &ts)
JsonSerializerbegin (std::ostream &os, TextCodec< cxxtools::Char, char > *codec=0)
void finish ()
template<typename T >
JsonSerializerserialize (const T &v, const std::string &name)
template<typename T >
JsonSerializerserialize (const T &v)
void setObject ()
bool object () const
bool beautify () const
void beautify (bool sw)

Static Public Member Functions

template<typename T >
static std::string toString (const T &type, const std::string &name, bool beautify=false)

Additional Inherited Members

- Private Member Functions inherited from cxxtools::NonCopyable
 NonCopyable ()

Constructor & Destructor Documentation

cxxtools::JsonSerializer::JsonSerializer ( )
inline
cxxtools::JsonSerializer::JsonSerializer ( std::basic_ostream< cxxtools::Char > &  ts)
inlineexplicit
cxxtools::JsonSerializer::JsonSerializer ( std::ostream &  os,
TextCodec< cxxtools::Char, char > *  codec = 0 
)
explicit
cxxtools::JsonSerializer::~JsonSerializer ( )
inline

Member Function Documentation

bool cxxtools::JsonSerializer::beautify ( ) const
inline
void cxxtools::JsonSerializer::beautify ( bool  sw)
inline
JsonSerializer& cxxtools::JsonSerializer::begin ( std::basic_ostream< cxxtools::Char > &  ts)
inline
JsonSerializer& cxxtools::JsonSerializer::begin ( std::ostream &  os,
TextCodec< cxxtools::Char, char > *  codec = 0 
)
void cxxtools::JsonSerializer::finish ( )
inline
bool cxxtools::JsonSerializer::object ( ) const
inline
template<typename T >
JsonSerializer& cxxtools::JsonSerializer::serialize ( const T &  v,
const std::string &  name 
)
inline
template<typename T >
JsonSerializer& cxxtools::JsonSerializer::serialize ( const T &  v)
inline
void cxxtools::JsonSerializer::setObject ( )
inline
template<typename T >
static std::string cxxtools::JsonSerializer::toString ( const T &  type,
const std::string &  name,
bool  beautify = false 
)
inlinestatic

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