Deserialize objects or object data to XML. More...

#include <cxxtools/xml/xmldeserializer.h>

Inheritance diagram for cxxtools::xml::XmlDeserializer:
cxxtools::Deserializer cxxtools::DeserializerBase

Public Member Functions

 XmlDeserializer (cxxtools::xml::XmlReader &reader)
 XmlDeserializer (std::istream &is)
cxxtools::xml::XmlReaderreader ()
- Public Member Functions inherited from cxxtools::Deserializer
 Deserializer ()
virtual ~Deserializer ()
template<typename T >
void deserialize (T &type)
 Deserialize an object.
template<typename T >
void deserialize (T &type, const std::string &name)
void deserialize ()
- Public Member Functions inherited from cxxtools::DeserializerBase
 DeserializerBase ()
virtual ~DeserializerBase ()
void begin ()
void clear ()
SerializationInfosi ()
const SerializationInfosi () const
SerializationInfocurrent ()
void setCategory (SerializationInfo::Category category)
void setName (const std::string &name)
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 setTypeName (const std::string &type)
void beginMember (const std::string &name, const std::string &type, SerializationInfo::Category category)
void leaveMember ()

Static Public Member Functions

template<typename T >
static void toObject (const std::string &str, T &type)
template<typename T >
static void toObject (XmlReader &in, T &type)
template<typename T >
static void toObject (std::istream &in, T &type)

Protected Member Functions

void doDeserialize ()
void beginDocument (const cxxtools::xml::Node &node)
void onRootElement (const cxxtools::xml::Node &node)
void onStartElement (const cxxtools::xml::Node &node)
void onWhitespace (const cxxtools::xml::Node &node)
void onContent (const cxxtools::xml::Node &node)
void onEndElement (const cxxtools::xml::Node &node)

Additional Inherited Members

- Public Types inherited from cxxtools::DeserializerBase
typedef long int_type
typedef unsigned long unsigned_type

Detailed Description

Deserialize objects or object data to XML.

Thic class performs XML deserialization of a single object or object data.

Constructor & Destructor Documentation

cxxtools::xml::XmlDeserializer::XmlDeserializer ( cxxtools::xml::XmlReader reader)
cxxtools::xml::XmlDeserializer::XmlDeserializer ( std::istream &  is)

Member Function Documentation

void cxxtools::xml::XmlDeserializer::beginDocument ( const cxxtools::xml::Node node)
protected
void cxxtools::xml::XmlDeserializer::doDeserialize ( )
protectedvirtual
void cxxtools::xml::XmlDeserializer::onContent ( const cxxtools::xml::Node node)
protected
void cxxtools::xml::XmlDeserializer::onEndElement ( const cxxtools::xml::Node node)
protected
void cxxtools::xml::XmlDeserializer::onRootElement ( const cxxtools::xml::Node node)
protected
void cxxtools::xml::XmlDeserializer::onStartElement ( const cxxtools::xml::Node node)
protected
void cxxtools::xml::XmlDeserializer::onWhitespace ( const cxxtools::xml::Node node)
protected
cxxtools::xml::XmlReader& cxxtools::xml::XmlDeserializer::reader ( )
inline
template<typename T >
static void cxxtools::xml::XmlDeserializer::toObject ( const std::string &  str,
T &  type 
)
inlinestatic
template<typename T >
static void cxxtools::xml::XmlDeserializer::toObject ( XmlReader in,
T &  type 
)
inlinestatic
template<typename T >
static void cxxtools::xml::XmlDeserializer::toObject ( std::istream &  in,
T &  type 
)
inlinestatic

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