Robotics Library  0.7.0
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
rl::xml::Node Class Reference

#include <Node.h>

Public Member Functions

 Node (::xmlNodePtr node)
 
 Node (const ::std::string &name)
 
 ~Node ()
 
Node addChild (const Node &node)
 
Node addNextSibling (const Node &node)
 
Node addPrevSibling (const Node &node)
 
Node addSibling (const Node &node)
 
::xmlNodePtr get () const
 
unsigned long getChildElementCount () const
 
::std::string getContent () const
 
Node getFirstChild () const
 
Attribute getFirstProperty () const
 
unsigned short int getLine () const
 
::std::string getLocalPath (const ::std::string &uri) const
 
::std::string getName () const
 
Namespace getNamespace () const
 
Node getNext () const
 
Node getParent () const
 
Node getPrevious () const
 
::std::string getProperty (const ::std::string &name) const
 
::std::string getProperty (const ::std::string &name, const ::std::string &nameSpace) const
 
::std::string getRelativeUri (const ::std::string &uri) const
 
::std::string getUri (const ::std::string &uri) const
 
bool hasChildren () const
 
bool hasNamespace () const
 
bool hasParent () const
 
bool hasProperties () const
 
Attribute hasProperty (const ::std::string &name) const
 
Attribute hasProperty (const ::std::string &name, const ::std::string &nameSpace) const
 
bool isBlank () const
 
bool isText () const
 
::xmlNode & operator* () const
 
bool removeAttribute (const Attribute &attribute)
 
Node replace (const Node &node)
 
void setContent (const ::std::string &content)
 
void setName (const ::std::string &name)
 
Attribute setProperty (const ::std::string &name, const ::std::string &value)
 
Attribute setProperty (const Namespace &nameSpace, const ::std::string &name, const ::std::string &value)
 
int substitute (const int &flags=0)
 
void unlink ()
 

Static Public Member Functions

static Node Text (const ::std::string &content)
 

Private Attributes

::xmlNodePtr node
 

Constructor & Destructor Documentation

◆ Node() [1/2]

rl::xml::Node::Node ( ::xmlNodePtr  node)
inlineexplicit

◆ Node() [2/2]

rl::xml::Node::Node ( const ::std::string &  name)
inlineexplicit

◆ ~Node()

rl::xml::Node::~Node ( )
inline

Member Function Documentation

◆ addChild()

Node rl::xml::Node::addChild ( const Node node)
inline

◆ addNextSibling()

Node rl::xml::Node::addNextSibling ( const Node node)
inline

◆ addPrevSibling()

Node rl::xml::Node::addPrevSibling ( const Node node)
inline

◆ addSibling()

Node rl::xml::Node::addSibling ( const Node node)
inline

◆ get()

::xmlNodePtr rl::xml::Node::get ( ) const
inline

◆ getChildElementCount()

unsigned long rl::xml::Node::getChildElementCount ( ) const
inline

◆ getContent()

::std::string rl::xml::Node::getContent ( ) const
inline

◆ getFirstChild()

Node rl::xml::Node::getFirstChild ( ) const
inline

◆ getFirstProperty()

Attribute rl::xml::Node::getFirstProperty ( ) const
inline

◆ getLine()

unsigned short int rl::xml::Node::getLine ( ) const
inline

◆ getLocalPath()

::std::string rl::xml::Node::getLocalPath ( const ::std::string &  uri) const
inline

◆ getName()

::std::string rl::xml::Node::getName ( ) const
inline

◆ getNamespace()

Namespace rl::xml::Node::getNamespace ( ) const
inline

◆ getNext()

Node rl::xml::Node::getNext ( ) const
inline

◆ getParent()

Node rl::xml::Node::getParent ( ) const
inline

◆ getPrevious()

Node rl::xml::Node::getPrevious ( ) const
inline

◆ getProperty() [1/2]

::std::string rl::xml::Node::getProperty ( const ::std::string &  name) const
inline

◆ getProperty() [2/2]

::std::string rl::xml::Node::getProperty ( const ::std::string &  name,
const ::std::string &  nameSpace 
) const
inline

◆ getRelativeUri()

::std::string rl::xml::Node::getRelativeUri ( const ::std::string &  uri) const
inline

◆ getUri()

::std::string rl::xml::Node::getUri ( const ::std::string &  uri) const
inline

◆ hasChildren()

bool rl::xml::Node::hasChildren ( ) const
inline

◆ hasNamespace()

bool rl::xml::Node::hasNamespace ( ) const
inline

◆ hasParent()

bool rl::xml::Node::hasParent ( ) const
inline

◆ hasProperties()

bool rl::xml::Node::hasProperties ( ) const
inline

◆ hasProperty() [1/2]

Attribute rl::xml::Node::hasProperty ( const ::std::string &  name) const
inline

◆ hasProperty() [2/2]

Attribute rl::xml::Node::hasProperty ( const ::std::string &  name,
const ::std::string &  nameSpace 
) const
inline

◆ isBlank()

bool rl::xml::Node::isBlank ( ) const
inline

◆ isText()

bool rl::xml::Node::isText ( ) const
inline

◆ operator*()

::xmlNode& rl::xml::Node::operator* ( ) const
inline

◆ removeAttribute()

bool rl::xml::Node::removeAttribute ( const Attribute attribute)
inline

◆ replace()

Node rl::xml::Node::replace ( const Node node)
inline

◆ setContent()

void rl::xml::Node::setContent ( const ::std::string &  content)
inline

◆ setName()

void rl::xml::Node::setName ( const ::std::string &  name)
inline

◆ setProperty() [1/2]

Attribute rl::xml::Node::setProperty ( const ::std::string &  name,
const ::std::string &  value 
)
inline

◆ setProperty() [2/2]

Attribute rl::xml::Node::setProperty ( const Namespace nameSpace,
const ::std::string &  name,
const ::std::string &  value 
)
inline

◆ substitute()

int rl::xml::Node::substitute ( const int &  flags = 0)
inline

◆ Text()

static Node rl::xml::Node::Text ( const ::std::string &  content)
inlinestatic

◆ unlink()

void rl::xml::Node::unlink ( )
inline

Member Data Documentation

◆ node

::xmlNodePtr rl::xml::Node::node
private

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