The base class.
More...
#include <Node.h>
| gpx::Node::Node |
( |
Node * |
parent, |
|
|
const char * |
name, |
|
|
bool |
mandatory |
|
) |
| |
Constructor
- Parameters
-
| parent | the parent node |
| name | the name of the attribute or element |
| mandatory | is the attribute or element mandatory ? |
| std::list<Node*>& gpx::Node::attributes |
( |
) | |
|
|
inline |
Get the attributes list
- Returns
- the parent node (or 0)
| Node * gpx::Node::buildAttribute |
( |
const char * |
name, |
|
|
std::ostream * |
report = 0 |
|
) |
| |
|
virtual |
Build an attribute node
- Parameters
-
| name | the name of the attribute |
| report | the optional report stream |
- Returns
- the node (or 0 if not found)
Reimplemented in gpx::GPX.
| Node * gpx::Node::buildElement |
( |
const char * |
name, |
|
|
std::ostream * |
report = 0 |
|
) |
| |
|
virtual |
| virtual Node* gpx::Node::built |
( |
) | |
|
|
inlinevirtual |
Done building the node
- Returns
- the parent node (or 0 if not found)
Reimplemented in gpx::GPX.
| std::list<Node*>& gpx::Node::elements |
( |
) | |
|
|
inline |
Get the elements list
- Returns
- the parent node (or 0)
| void gpx::Node::filter |
( |
const char * |
name, |
|
|
std::list< Node * > & |
nodes |
|
) |
| |
|
protected |
Filter the attributes and elements for a node name
- Parameters
-
| name | the name of the node |
| nodes | the destination list for the nodes |
| void gpx::Node::indent |
( |
std::ostream & |
output, |
|
|
int |
level |
|
) |
| const |
Indent the current output
- Parameters
-
| output | the output stream |
| level | the indent level |
| void gpx::Node::insert |
( |
const char * |
name, |
|
|
Node * |
node |
|
) |
| |
|
protected |
Insert a repeating node
- Parameters
-
| name | the name of the node |
| node | the node to be inserted |
| bool gpx::Node::isExtension |
( |
) | |
|
|
protected |
Check if this node or one of its parents is an extension node
- Returns
- is it ?
| bool gpx::Node::mandatory |
( |
) | |
const |
|
inline |
Is mandatory
- Returns
- is the attribute or element mandatory
| const std::string& gpx::Node::name |
( |
) | |
const |
|
inline |
Return the name
- Returns
- the name of the attribute or element
| Node* gpx::Node::parent |
( |
) | |
const |
|
inline |
Get the parent node of this node
- Returns
- the parent node (or 0)
| bool gpx::Node::used |
( |
) | |
const |
|
inline |
Is the node used ?
- Returns
- is it ?
| void gpx::Node::used |
( |
bool |
value) | |
|
|
inline |
Set the attribute or element used
- Parameters
-
| bool gpx::Node::validate |
( |
std::ostream * |
report = 0) | |
const |
|
virtual |
Validate the object
- Parameters
-
| report | the optional report stream |
- Returns
- is validation succesfull
Reimplemented in gpx::Fix, gpx::Link, gpx::DateTime, gpx::Decimal, gpx::Degrees, gpx::DGPSStation, gpx::Longitude, gpx::String, gpx::Unsigned, gpx::URI, and gpx::Latitude.
| virtual const std::string& gpx::Node::value |
( |
) | |
const |
|
inlinevirtual |
Return the value
- Returns
- the value of the attribute or element
| virtual void gpx::Node::value |
( |
std::string |
value) | |
|
|
inlinevirtual |
Set the value
- Parameters
-
| value | the value of the attribute or element |
Reimplemented in gpx::GPX.
| bool gpx::Node::write |
( |
std::ostream & |
output, |
|
|
int |
level |
|
) |
| const |
|
virtual |
Write the gpx object to a stream
- Parameters
-
| output | the output stream |
| level | the indent level (or <0 for disabled) |
- Returns
- is the writting succesfull
The documentation for this class was generated from the following files: