#include <XMLNode.hpp>
Public Types | |
typedef std::map< std::string, std::string > | MAttributes |
Public Member Functions | |
XMLNode (const std::string &name) | |
XMLNode (const std::string &name, const std::string &value) | |
XMLNode (const std::string &name, const MAttributes &attributes) | |
XMLNode (const std::string &name, const MAttributes &attributes, const std::string &value) | |
~XMLNode () | |
clean up | |
void | addChild (XMLNode *child) |
void | addAttribute (const std::string &key, const std::string &value) |
void | setValue (const std::string &value) |
const std::string & | getName () const |
the name of this node | |
const std::string & | getValue () const |
the value of this node | |
const MAttributes & | getAttributes () const |
the attributes of this node | |
std::string | getAttribute (const std::string &name) const |
const std::vector< XMLNode * > & | getChildren () const |
const XMLNode * | getChild (const std::string &name) const |
std::string | getChildValue (const std::string &name) const |
Private Attributes | |
std::string | _name |
MAttributes | _attributes |
std::vector< XMLNode * > | _children |
std::string | _value |
|
|
|
Create a node with the given name
|
|
Create a node with the given name and value
|
|
Create a node with the given name and value
|
|
Create a node with the given name and value
|
|
clean up
|
|
Add an attribute to this node.
|
|
Add a child to this node.
|
|
Get the named attribute value
|
|
the attributes of this node
|
|
Get the named child of this node.
|
|
Get the children of this node
|
|
Get the value of the named child of this node.
|
|
the name of this node
|
|
the value of this node
|
|
Set the value of this node
|
|
|
|
|
|
|
|
|