XConfig Class Reference

List of all members.

Public Member Functions

 XConfig (const char *name, const char **attrs)
Attribute attribute (const string &s) const
Attribute attribute (const string &s, const string &d) const
const Config * child (const string &s) const
Configs children () const
std::string name () const

Public Attributes

string name_
StringMap attributes_
XConfigs children_

Detailed Description

Hierarchical config implementation. This is a node for the Tree.


Constructor & Destructor Documentation

XConfig::XConfig ( const char *  name,
const char **  attrs 
) [inline]

Constructor in a form that works best with expat.


Member Function Documentation

Attribute XConfig::attribute ( const string &  s  )  const [inline]

Extract an attribute.

Attribute XConfig::attribute ( const string &  s,
const string &  d 
) const [inline]

Extract an attribute, with a default value.

const Config* XConfig::child ( const string &  s  )  const [inline]

Find a child with the given name. This is not a recursive search.

Configs XConfig::children (  )  const [inline]

Get the children of this node.

std::string XConfig::name (  )  const [inline]

Get the name of this node.


Member Data Documentation

string XConfig::name_

The name of the node. The tag for an XML implementation.

StringMap XConfig::attributes_

The name-value pairs associated with this node

XConfigs XConfig::children_

The sub-nodes under this element


The documentation for this class was generated from the following file:
Generated on Thu Jan 3 15:26:45 2008 by  doxygen 1.5.2