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

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

#include <GPX.h>

Inheritance diagram for gpx::GPX:
gpx::Node

Public Member Functions

 GPX (Node *parent, const char *name, bool mandatory=false)
 
virtual ~GPX ()
 
Stringversion ()
 
Stringcreator ()
 
Metadatametadata ()
 
std::list< Node * > wpt ()
 
Extensionsextensions ()
 
virtual NodebuildElement (const char *name, std::ostream *report=0)
 
virtual NodebuildAttribute (const char *name, std::ostream *report=0)
 
virtual Nodebuilt ()
 
virtual void value (std::string value)
 
- 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)
 
Nodeparent () const
 
std::list< Node * > & attributes ()
 
std::list< Node * > & elements ()
 
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 main class of the gpx library.

Constructor & Destructor Documentation

gpx::GPX::GPX ( 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::GPX::~GPX ( )
virtual

Deconstructor

Member Function Documentation

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

Build an attribute node

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

Reimplemented from gpx::Node.

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

Build an element node

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

Reimplemented from gpx::Node.

Node * gpx::GPX::built ( )
virtual

Done building the node

Returns
the parent node (or 0 if not found)

Reimplemented from gpx::Node.

String& gpx::GPX::creator ( )
inline

Get creator

Returns
the creator object
Extensions& gpx::GPX::extensions ( )
inline

Get rte

Returns
the rte object
Todo:
return rte

Get trk

Returns
the trk object
Todo:
return trk

Get extensions

Returns
the extensions object
Metadata& gpx::GPX::metadata ( )
inline

Get metadata

Returns
the metadata object
void gpx::GPX::value ( std::string  value)
virtual

Set the value

Parameters
valuethe value of the attribute or element

Reimplemented from gpx::Node.

String& gpx::GPX::version ( )
inline

Get version

Returns
the version object
list< Node * > gpx::GPX::wpt ( )

Get wpt

Returns
the wpt object

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