gpxlib
agpxlibrary
|
The main class of the gpx library. More...
#include <GPX.h>
Public Member Functions | |
GPX (Node *parent, const char *name, bool mandatory=false) | |
virtual | ~GPX () |
String & | version () |
String & | creator () |
Metadata & | metadata () |
std::list< Node * > | wpt () |
Extensions & | extensions () |
virtual Node * | buildElement (const char *name, std::ostream *report=0) |
virtual Node * | buildAttribute (const char *name, std::ostream *report=0) |
virtual Node * | built () |
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) |
Node * | parent () 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 () |
The main class of the gpx library.
gpx::GPX::GPX | ( | Node * | parent, |
const char * | name, | ||
bool | mandatory = false |
||
) |
Constructor
parent | the parent node |
name | the name of the attribute or element |
mandatory | is the attribute or element mandatory ? |
|
virtual |
Deconstructor
|
virtual |
Build an attribute node
name | the name of the attribute |
report | the optional report stream |
Reimplemented from gpx::Node.
|
virtual |
Build an element node
name | the name of the element |
report | the optional report stream |
Reimplemented from gpx::Node.
|
virtual |
|
inline |
Get creator
|
inline |
|
inline |
Get metadata
|
virtual |
|
inline |
Get version
list< Node * > gpx::GPX::wpt | ( | ) |
Get wpt