#include <ISerializeNode.h>

Public Member Functions | |
| virtual | ~ISerializeNode () |
| virtual tISerializeNodePtr | SerializeVariant (const std::string name, Variant v)=0 |
| Variant Serialization. | |
| virtual tISerializeNodePtr | SerializeType (const std::string type, const std::string value)=0 |
| Type Serialization. | |
| virtual Variant | Value ()=0 |
| Node Value. | |
The Serialize Node is a structure which can be passed to a class to be serialized. It can be read from, or written to, but this is done by the ISerializer. Each type of serializer should have two Serialize Node types. One for input, and one for output. In this way the classes can have a single Serialize function for both input and output, in a similar style to the Boost::Serialization library. But this way we don't need to depend on streams.
Definition at line 57 of file ISerializeNode.h.
| virtual pcce::ISerializeNode::~ISerializeNode | ( | ) | [inline, virtual] |
| virtual tISerializeNodePtr pcce::ISerializeNode::SerializeVariant | ( | const std::string | name, | |
| Variant | v | |||
| ) | [pure virtual] |
Variant Serialization.
Called by ISerializable, it is specific for each ISerializer implementation and guarantees that it will be done the same across the serialization.
Implemented in pcce::XmlSerializeNode.
| virtual tISerializeNodePtr pcce::ISerializeNode::SerializeType | ( | const std::string | type, | |
| const std::string | value | |||
| ) | [pure virtual] |
Type Serialization.
This gives you an enclosure of the correct type to put other items in if you need
Implemented in pcce::XmlSerializeNode.
| virtual Variant pcce::ISerializeNode::Value | ( | ) | [pure virtual] |
1.5.5