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

External Class Reference
[Data classes]

Holds the file system path to an external data source. More...

#include <External.h>

Inheritance diagram for External:

BaseType List of all members.

Public Methods

virtual ~External ()
 Destructor.

const External & operator= (std::string const &)
 Assign from a path string, converting to the internal farmat.

const External & operator= (External const &)
 Copy method.

bool operator== (External const &)
 Test equality.

bool operator!= (External const &path)
 Test inequality.

bool operator== (std::string const &)
 Test string equality.

bool operator!= (std::string const &path)
 Test string inequality.

void setSource (const char *path)
 Assign from a path string, converting to the internal farmat.

const std::string & getSource () const
 Get the source path in the platform specific format.

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

virtual std::string asString () const
 Standard string representation.

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

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.


Protected Attributes

std::string _path
std::string _native_path

Detailed Description

Holds the file system path to an external data source.

Paths are stored interally in a platform independent format, and automatically converted to and from the native format.

Note:
The utility of this class is rather questionable. At this point I recommend using std::string and using functions in simdata::ospath to convert to native format at runtime. (-MR)
Author:
Mark Rose <mrose@stm.lbl.gov>


Constructor & Destructor Documentation

NAMESPACE_SIMDATA External::~External   [virtual]
 

Destructor.


Member Function Documentation

std::string External::asString   [virtual]
 

Standard string representation.

Implements BaseType.

void BaseType::convertXML   [virtual, inherited]
 

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.

const std::string & External::getSource  
 

Get the source path in the platform specific format.

bool External::operator!= std::string const &    path [inline]
 

Test string inequality.

bool External::operator!= External const &    path [inline]
 

Test inequality.

const External & External::operator= External const &   
 

Copy method.

const External & External::operator= std::string const &   
 

Assign from a path string, converting to the internal farmat.

bool External::operator== std::string const &   
 

Test string equality.

bool External::operator== External const &   
 

Test equality.

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

Parse cdata from within the XML tags for this object.

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

void External::serialize Archive   [virtual]
 

Serialize to or from a data archive.

Reimplemented from BaseType.

void External::setSource const char *    path
 

Assign from a path string, converting to the internal farmat.

virtual std::string External::typeString   const [inline, virtual]
 

Return a string representation of the type.

Implements BaseType.


Member Data Documentation

std::string External::_native_path [protected]
 

std::string External::_path [protected]
 


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]