Physsim::XMLTree Class Reference

An XML tree used for serialization. More...

#include <XMLTree.h>

List of all members.

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 XMLAttribget_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< XMLTreeget_parent () const
 Gets the parent of this tree (if any).
void add_attrib (const XMLAttrib &attrib)
 Adds the specified attribute to this node.


Detailed Description

An XML tree used for serialization.


Member Function Documentation

const XMLAttrib * XMLTree::get_attrib ( const std::string &  attrib_name  )  const

Gets the specified attribute.

Returns:
a pointer to the attribute with the specified name, or NULL if the requested attribute does not exist


The documentation for this class was generated from the following files:
Generated on Wed Oct 24 14:54:23 2007 for Physsim by  doxygen 1.5.1