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

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

#include <TRK.h>

Inheritance diagram for gpx::TRK:
gpx::Node

Public Member Functions

 TRK (Node *parent, const char *name, bool mandatory=false)
 
virtual ~TRK ()
 
Stringname ()
 
Stringcmt ()
 
Stringdesc ()
 
Stringsrc ()
 
std::list< Node * > link ()
 
Unsignednumber ()
 
Stringtype ()
 
Extensionsextensions ()
 
std::list< Node * > trkseg ()
 
NodebuildElement (const char *name, std::ostream *report)
 
- 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 track class of the gpx library.

Constructor & Destructor Documentation

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

Deconstructor

Member Function Documentation

Node * gpx::TRK::buildElement ( const char *  name,
std::ostream *  report 
)
virtual

Build the element node

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

Reimplemented from gpx::Node.

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

Get cmt

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

Get desc

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

Get extensions

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

Get link

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

Get name

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

Get number

Returns
the number object
String& gpx::TRK::src ( )
inline

Get src

Returns
the src object
list< Node * > gpx::TRK::trkseg ( )

Get trkseg

Returns
the trkseg objects
String& gpx::TRK::type ( )
inline

Get type

Returns
the type object

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