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_ |
| XConfig::XConfig | ( | const char * | name, | |
| const char ** | attrs | |||
| ) | [inline] |
Constructor in a form that works best with expat.
| 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.
| 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
1.5.2