#include <Object.h>
Inheritance diagram for Object:

Public Methods | |
| Object () | |
| virtual | ~Object () |
| virtual Object * | _new () const |
| Create a new instance of the class. | |
| virtual void | serialize (Archive &archive) |
| Serialize an object to or from a data archive. | |
| virtual std::string | asString () const |
| Get a string representation of the object. | |
| virtual std::string | typeString () const |
| Return a string representation of the type. | |
| hasht | getPath () const |
| Get the path hash from which the object was instantiated. | |
| virtual void | parseXML (const char *cdata) |
| Parse cdata from within the XML tags for this object. | |
| virtual void | convertXML () |
| Convert XML data to internal format prior to serialization. | |
Static Public Methods | |
| hasht | _getHash (const char *c) |
| Hash function for converting data archive paths to path hashes. | |
Protected Methods | |
| virtual void | postCreate () |
| Initialize an object after deserialization. | |
Friends | |
| class | DataArchive |
| class | LinkBase |
Derived classes must include the SIMDATA_OBJECT(classname, major, minor) macro in their class definition and the SIMDATA_REGISTER(classname) macro in their implementation.
The following methods must be extended in derived classes:
pack serialize object to archive (call superclass method first) unpack unserialize object from archive (call superclass method first) parseXML parse loose XML cdata if present convertXML post-process XML data postCreate additional processing after deserialization
|
|
|
|
|
|
|
|
Hash function for converting data archive paths to path hashes.
|
|
|
Create a new instance of the class. The method is automatically overridden by the SIMDATA_OBJECT macro, so you should never need to extend it manually. |
|
|
Get a string representation of the object. This method is also used for writing to ostreams using operator<<(). Implements BaseType. |
|
|
Convert XML data to internal format prior to serialization. This method is currently only called by the XML parser for Object classes. If another BaseType class requires this method, a call must be added to the appropriate XML handler in the parser. |
|
|
Get the path hash from which the object was instantiated. Given the source DataArchive, this path hash can be converted back to a path string using getPathString(). |
|
|
Parse cdata from within the XML tags for this object.
Reimplemented in SimDate, EnumLink, GeoPos, LLA, UTM, Matrix3, Quat, Real, and Vector3. |
|
|
Initialize an object after deserialization. Called after the newly created object has been deserialized. Extend this method to do any initial processing of the external data. |
|
|
Serialize an object to or from a data archive. Extend this method to serialize member variables to and from data archives. Call the base class method first, then apply the archive functor to each archived variable. Any additional processing of the data following retrieval should be done in the postCreate() method. Reimplemented from BaseType. |
|
|
Return a string representation of the type. The type string for classes derived from Object is just the classname. The implementation in Object returns the true classname using getClassName(), so this method should not be overridden in derived classes. Implements BaseType. |
|
|
|
|
|
|
|
SimData version pre-0.4.0. For more information on SimData, visit the SimData Homepage. Generated on Tue Oct 14 12:06:41 2003, using Doxygen 1.2.18. |