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

The link to an external resource class. More...

#include <Link.h>

Inheritance diagram for gpx::Link:
gpx::Node

Public Member Functions

 Link (Node *parent, const char *name, bool mandatory=false)
 
virtual ~Link ()
 
virtual bool validate (std::ostream *report=0) const
 
URIhref ()
 
Stringtext ()
 
Stringtype ()
 
- 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 NodebuildElement (const char *name, std::ostream *report=0)
 
virtual Nodebuilt ()
 
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 link to an external resource class.

Constructor & Destructor Documentation

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

Deconstructor

Member Function Documentation

URI& gpx::Link::href ( )
inline

Get href

Returns
the href object
String& gpx::Link::text ( )
inline

Get text

Returns
the text object
String& gpx::Link::type ( )
inline

Get type

Returns
the type object
virtual bool gpx::Link::validate ( std::ostream *  report = 0) const
virtual

Validate the Link object

Parameters
reportthe optional report stream
Returns
is validation succesfull

Reimplemented from gpx::Node.


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