gpxlib
agpxlibrary
Public Member Functions | List of all members
gpx::RTE Class Reference

The route class of the gpx library. More...

#include <RTE.h>

Inheritance diagram for gpx::RTE:
gpx::Node

Public Member Functions

 RTE (Node *parent, const char *name, bool mandatory=false)
 
virtual ~RTE ()
 
Stringname ()
 
Stringcmt ()
 
Stringdesc ()
 
Stringsrc ()
 
std::list< Node * > link ()
 
Unsignednumber ()
 
Stringtype ()
 
Extensionsextensions ()
 
std::list< Node * > rtept ()
 
virtual NodebuildElement (const char *name, std::ostream *report=0)
 
- Public Member Functions inherited from gpx::Node
 Node (Node *parent, const char *name, bool mandatory)
 
virtual ~Node ()
 
const std::string & name () const
 
virtual const std::string & value () const
 
bool mandatory () const
 
bool used () const
 
void used (bool value)
 
virtual void value (std::string value)
 
Nodeparent () const
 
std::list< Node * > & attributes ()
 
std::list< Node * > & elements ()
 
virtual NodebuildAttribute (const char *name, std::ostream *report=0)
 
virtual Nodebuilt ()
 
virtual bool validate (std::ostream *report=0) const
 
virtual bool write (std::ostream &output, int level) const
 
void indent (std::ostream &output, int level) const
 

Additional Inherited Members

- Protected Member Functions inherited from gpx::Node
void insert (const char *name, Node *node)
 
void filter (const char *name, std::list< Node * > &nodes)
 
bool isExtension ()
 

Detailed Description

The route class of the gpx library.

Constructor & Destructor Documentation

gpx::RTE::RTE ( Node parent,
const char *  name,
bool  mandatory = false 
)

Constructor

Parameters
parentthe parent node
namethe name of the attribute or element
mandatoryis the attribute or element mandatory ?
gpx::RTE::~RTE ( )
virtual

Deconstructor

Member Function Documentation

Node * gpx::RTE::buildElement ( const char *  name,
std::ostream *  report = 0 
)
virtual

Build the element

Parameters
namethe name of the element
reportthe optional report stream
Returns
the node (or 0 if not found)

Reimplemented from gpx::Node.

String& gpx::RTE::cmt ( )
inline

Get cmt

Returns
the cmt object
String& gpx::RTE::desc ( )
inline

Get desc

Returns
the desc object
Extensions& gpx::RTE::extensions ( )
inline

Get extensions

Returns
the extensions object
list< Node * > gpx::RTE::link ( )

Get link

Returns
the link objects
String& gpx::RTE::name ( )
inline

Get name

Returns
the name object
Unsigned& gpx::RTE::number ( )
inline

Get number

Returns
the number object
list< Node * > gpx::RTE::rtept ( )

Get rtept

Returns
the rtept objects
String& gpx::RTE::src ( )
inline

Get src

Returns
the src object
String& gpx::RTE::type ( )
inline

Get type

Returns
the type object

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