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

The metadata from another schema's class. More...

#include <Metadata.h>

Inheritance diagram for gpx::Metadata:
gpx::Node

Public Member Functions

 Metadata (Node *parent, const char *name, bool mandatory=false)
 
virtual ~Metadata ()
 
Stringname ()
 
Stringdesc ()
 
Personauthor ()
 
Copyrightcopyright ()
 
std::list< Node * > link ()
 
DateTimetime ()
 
Stringkeywords ()
 
Boundsbounds ()
 
Extensionsextensions ()
 
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 metadata from another schema's class.

Constructor & Destructor Documentation

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

Deconstructor

Member Function Documentation

Person& gpx::Metadata::author ( )
inline

Get author

Returns
the author object
Bounds& gpx::Metadata::bounds ( )
inline

Get bounds

Returns
the bounds object
Node * gpx::Metadata::buildElement ( const char *  name,
std::ostream *  report = 0 
)
virtual

Build an element

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

Reimplemented from gpx::Node.

Copyright& gpx::Metadata::copyright ( )
inline

Get copyright

Returns
the copyright object
String& gpx::Metadata::desc ( )
inline

Get desc

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

Get extensions

Returns
the extensions object
String& gpx::Metadata::keywords ( )
inline

Get keywords

Returns
the keywords object
list< Node * > gpx::Metadata::link ( )

Get link

Returns
the link object
Todo:
return link
String& gpx::Metadata::name ( )
inline

Get name

Returns
the name object
DateTime& gpx::Metadata::time ( )
inline

Get time

Returns
the time object

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