pcce::ISerializeNode Class Reference

Base Serialize Node. More...

#include <ISerializeNode.h>

Inheritance diagram for pcce::ISerializeNode:

pcce::XmlSerializeNode

List of all members.

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.


Detailed Description

Base Serialize Node.

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.


Constructor & Destructor Documentation

virtual pcce::ISerializeNode::~ISerializeNode (  )  [inline, virtual]

Definition at line 59 of file ISerializeNode.h.

00059 {};


Member Function Documentation

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]

Node Value.

Returns the string value of the node.

Implemented in pcce::XmlSerializeNode.


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

Generated on Thu Mar 6 11:39:28 2008 for Protocce by  doxygen 1.5.5