#include <XMLTree.h>
Public Member Functions | |
| XMLTree (const std::string &name) | |
| Constructs a XMLTree with no attributes. | |
| XMLTree (const std::string &name, const std::list< XMLAttrib > &attributes) | |
| Constructs a XMLTree with the specified list of attributes. | |
| const XMLAttrib * | get_attrib (const std::string &attrib_name) const |
| Gets the specified attribute. | |
| std::list< XMLTreeConstPtr > | find_child_nodes (const std::string &name) const |
| Returns a list of all child nodes (not including further descendants) matching the given name (case insensitive). | |
| std::list< XMLTreeConstPtr > | find_child_nodes (const std::list< std::string > &name) const |
| Returns a list of all child nodes (not including further descendants) matching any of the names in the given list (case insensitive). | |
| std::list< XMLTreeConstPtr > | find_descendant_nodes (const std::string &name) const |
| const std::list< XMLTreeConstPtr > & | get_child_nodes () const |
| Gets the list of child nodes of this node. | |
| const std::set< XMLAttrib > & | get_attributes () const |
| Gets the set of attributes of this node. | |
| const std::string & | name () const |
| Gets the name of this node. | |
| void | name (const std::string name) |
| Sets the name of this node. | |
| boost::shared_ptr< void > | get_object () const |
| Gets the object (if any) represented by this node. | |
| void | set_object (boost::shared_ptr< void > object) |
| Sets the object represented by this node. | |
| void | add_child (XMLTreePtr child) |
| Adds a child tree to this tree; also sets the parent node. | |
| void | set_parent (XMLTreePtr parent) |
| Sets the parent of this tree (if any). | |
| boost::weak_ptr< XMLTree > | get_parent () const |
| Gets the parent of this tree (if any). | |
| void | add_attrib (const XMLAttrib &attrib) |
| Adds the specified attribute to this node. | |
| const XMLAttrib * XMLTree::get_attrib | ( | const std::string & | attrib_name | ) | const |
Gets the specified attribute.
1.5.1