cxxtools::Deserializer Class Reference

convert format to SerializationInfo More...

#include <cxxtools/deserializer.h>

Inheritance diagram for cxxtools::Deserializer:
cxxtools::bin::Deserializer cxxtools::CsvDeserializer cxxtools::JsonDeserializer cxxtools::PropertiesDeserializer cxxtools::xml::XmlDeserializer

Public Types

typedef long int_type
typedef unsigned long unsigned_type

Public Member Functions

 Deserializer ()
virtual ~Deserializer ()
template<typename T >
void deserialize (T &type) const
 Deserialize an object.
template<typename T >
void deserialize (T &type, const std::string &name) const
SerializationInfosi ()
const SerializationInfosi () const
void begin ()
void clear ()
SerializationInfocurrent ()
const SerializationInfocurrent () const
void setCategory (SerializationInfo::Category category)
void setName (const std::string &name)
void setTypeName (const std::string &type)
void setValue (const String &value)
void setValue (const std::string &value)
void setValue (const char *value)
void setValue (bool value)
void setValue (int_type value)
void setValue (unsigned_type value)
void setValue (long double value)
void setNull ()
void beginMember (const std::string &name, const std::string &type, SerializationInfo::Category category)
void leaveMember ()

Detailed Description

convert format to SerializationInfo

Member Typedef Documentation

Constructor & Destructor Documentation

cxxtools::Deserializer::Deserializer ( )
inline

Reimplemented in cxxtools::bin::Deserializer.

virtual cxxtools::Deserializer::~Deserializer ( )
inlinevirtual

Member Function Documentation

void cxxtools::Deserializer::begin ( )
void cxxtools::Deserializer::beginMember ( const std::string &  name,
const std::string &  type,
SerializationInfo::Category  category 
)
void cxxtools::Deserializer::clear ( )
SerializationInfo* cxxtools::Deserializer::current ( )
inline
const SerializationInfo* cxxtools::Deserializer::current ( ) const
inline
template<typename T >
void cxxtools::Deserializer::deserialize ( T &  type) const
inline

Deserialize an object.

This method will deserialize the object type from an input format. The type type must be serializable.

template<typename T >
void cxxtools::Deserializer::deserialize ( T &  type,
const std::string &  name 
) const
inline
void cxxtools::Deserializer::leaveMember ( )
void cxxtools::Deserializer::setCategory ( SerializationInfo::Category  category)
inline
void cxxtools::Deserializer::setName ( const std::string &  name)
inline
void cxxtools::Deserializer::setNull ( )
inline
void cxxtools::Deserializer::setTypeName ( const std::string &  type)
inline
void cxxtools::Deserializer::setValue ( const String value)
inline
void cxxtools::Deserializer::setValue ( const std::string &  value)
inline
void cxxtools::Deserializer::setValue ( const char *  value)
inline
void cxxtools::Deserializer::setValue ( bool  value)
inline
void cxxtools::Deserializer::setValue ( int_type  value)
inline
void cxxtools::Deserializer::setValue ( unsigned_type  value)
inline
void cxxtools::Deserializer::setValue ( long double  value)
inline
SerializationInfo& cxxtools::Deserializer::si ( )
inline
const SerializationInfo& cxxtools::Deserializer::si ( ) const
inline

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