Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

BaseType Class Reference

Base class for objects that support serialization to data archives. More...

#include <BaseType.h>

Inheritance diagram for BaseType:

EnumLink External InterpolatedData< T > InterpolatedData< float > Interpolation Key ListBase LLA Matrix3 Object Path Quat Real SimDate UTM Vector3 List of all members.

Public Methods

virtual ~BaseType ()
 Ensure virtual destructor.

virtual void serialize (Archive &)
 Serialize an object to or from a data archive.

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.

virtual std::string asString () const=0
 Return a string representation of the instance.

virtual std::string typeString () const=0
 Return a string representation of the type.


Detailed Description

Base class for objects that support serialization to data archives.

Author:
Mark Rose <mrose@stm.lbl.gov>


Constructor & Destructor Documentation

BaseType::~BaseType   [virtual]
 

Ensure virtual destructor.


Member Function Documentation

virtual std::string BaseType::asString   [pure virtual]
 

Return a string representation of the instance.

This method is used to provide a string representation of the object for output to ostreams (using <<), and also serves as __repr__ in Python.

Implemented in SimDate, EnumLink, External, GeoPos, LLA, UTM, Curve, Table, Key, LinkBase, List< T >, LUT< N, X >, LUT< 1, X >, Matrix3, Object, Path, Quat, Real, Vector3, and LUT< N, T >.

void BaseType::convertXML   [virtual]
 

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.

void BaseType::parseXML const char *    cdata [virtual]
 

Parse cdata from within the XML tags for this object.

Reimplemented in SimDate, EnumLink, GeoPos, LLA, UTM, Matrix3, Quat, Real, and Vector3.

virtual void BaseType::serialize Archive   [inline, virtual]
 

Serialize an object to or from a data archive.

Reimplemented in SimDate, EnumLink, External, GeoPos, LLA, UTM, InterpolatedData< T >, Curve, Table, Key, LinkBase, List< T >, LUT< N, X >, LUT< 1, X >, Matrix3, Object, Path, Quat, Real, Vector3, InterpolatedData< float >, and LUT< N, T >.

virtual std::string BaseType::typeString   [pure virtual]
 

Return a string representation of the type.

Implemented in SimDate, EnumLink, External, GeoPos, LLA, UTM, ECEF, Curve, Table, Key, LinkBase, Link< T >, LUT< N, X >, LUT< 1, X >, Matrix3, Object, Path, Quat, Real, Vector3, and LUT< N, T >.


The documentation for this class was generated from the following files:
SimData version pre-0.4.0. For more information on SimData, visit the SimData Homepage.

Generated on Tue Oct 14 12:06:40 2003, using Doxygen 1.2.18.

[SF.net]