Class for serializing data. More...
#include <XmlSerializer.hpp>
Public Member Functions | |
| XmlSerializer (const XmlNode &node) | |
| A constructor. | |
| template<typename T > | |
| XmlSerializer & | operator<< (const NVPtype< T > &nvp) |
| Serialize data. More... | |
| XmlSerializer & | operator<< (const XmlNode &node) |
| template<typename T > | |
| T | deserialize (const char *name) |
| Deserialize data. More... | |
Class for serializing data.
This class provides a clean interface to seriaze and deserialize data in the ImageOperation::serialize() function.
The OperationSerializer objects can be constructed only by the GraphManager class, to ensure that the serialized data are stored at a correct place in the XML tree.
|
inline |
Deserialize data.
| nvp | name-value pair to deserialize. The name is used to find the corresponding serialized data. These data are then deserialized and stored in the value of the nvp. |
|
inline |
Serialize data.
| nvp | name-value pair to store. To create such pair easily, use one of the nvp() functions |
1.8.4