XmlSerializer is used for serializing objects as XML, and for reconstructing them again. More...
#include <XmlSerializer.h>
Static Public Member Functions | |
template<class T > | |
static void | serialize (const T *object, const std::string &rootName, std::ostream &stream) |
Serialize an object as XML. | |
template<class T > | |
static T * | deserialize (std::istream &stream) |
Reconstruct an object that has been serialized as XML. |
XmlSerializer is used for serializing objects as XML, and for reconstructing them again.
static T* deserialize | ( | std::istream & | stream | ) | [inline, static] |
Reconstruct an object that has been serialized as XML.
stream | an input stream to read the XML from |
static void serialize | ( | const T * | object, | |
const std::string & | rootName, | |||
std::ostream & | stream | |||
) | [inline, static] |
Serialize an object as XML.
object | the object to serialize | |
rootName | the name to use for the root node of the XML document | |
stream | an output stream to write the XML to |