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

The ordered sequence of points class. More...

#include <PTSeg.h>

Inheritance diagram for gpx::PTSeg:
gpx::Node

Public Member Functions

 PTSeg (Node *parent, const char *name, bool mandatory=false)
 
virtual ~PTSeg ()
 
std::list< Node * > pt ()
 
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 ordered sequence of points class.

Constructor & Destructor Documentation

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

Deconstructor

Member Function Documentation

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

Build an element

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

Reimplemented from gpx::Node.

list< Node * > gpx::PTSeg::pt ( )

Get a list of PTs

Returns
the list

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