#include <Serializable.h>

Public Member Functions | |
| virtual bool | toXml (XMLWriter *pXml) const =0 |
| virtual bool | fromXml (DOMNode *pDocument, unsigned int version)=0 |
Protected Member Functions | |
| virtual | ~Serializable () |
Objects that can save/restore themselves from a file inherit this interface. Each class that ultimately derives from Serializable must implement an override of these interfaces, even if an intermediate parent already has an implementation.
The structure of the serialized output generally has the form of a string with the class name, followed by the data comprising the object plus any data in the object's inherited parent(s).
Definition at line 30 of file Serializable.h.
| virtual Serializable::~Serializable | ( | ) | [protected, virtual] |
This should not be deleted directly.
It should be deleted according to the instructions provided for the relevant subclass.
Definition at line 74 of file Serializable.h.
| virtual bool Serializable::toXml | ( | XMLWriter * | pXml | ) | const [pure virtual] |
Converts the contents of this object to XML data.
| pXml | Pointer to an XMLWriter object in which the object's contents are written. |
| XmlBase::XmlException | This exception (or a subclass) is thrown if there is a problem serializing the object. |
| virtual bool Serializable::fromXml | ( | DOMNode * | pDocument, | |
| unsigned int | version | |||
| ) | [pure virtual] |
Sets the contents of this object from given XML data.
| pDocument | The Xerces DOM node. | |
| version | This is the version of the XML which is being deserialized. |
| XmlBase::XmlException | This exception (or a subclass) is thrown if there is a problem deserializing the object. |