dodo::data::format::xml::node Class Reference
#include <dataFormatXmlNode.h>

Classes | |
| struct | __namespace__ |
| defines node namespace More... | |
Public Member Functions | |
| node () | |
| constructor | |
| node (const dodoString &name, const dodoStringMap &attributes, const dodoString &value, const dodoString &ns=__dodostring__) | |
| constructor | |
| void | addChild (const node &child) |
| add child to the node | |
| void | setChildren (const dodoArray< node > &children) |
| set children of the node | |
| dodoArray< node > | children (const dodoString &name, bool recursive=false) |
| dodoStringArray | childrenNames (bool recursive=false) |
| dodoString | operator[] (const dodoString &name) |
| void | setValue (const dodoString &value, bool CDATA=false) |
| set value of the node | |
| dodoString | value () |
Public Attributes | |
| dodoStringMap | attributes |
| attributes | |
| dodoString | name |
| name of the node [[tag]] | |
| __namespace__ | ns |
| namespace of the node | |
| __namespace__ | nsDef |
| namespace definition of the node | |
Protected Attributes | |
| dodoMap< dodoString, dodoArray < node >, dodoMapStringCompare > | nodeChildren |
| children | |
| dodoString | nodeValue |
| value of the node | |
| bool | CDATA |
| true if node contains CDATA | |
Detailed Description
defines xml tree
- Note:
- children is a map of vectors of xml nodes where map key is node name and vector contains nodes with name given in key
Definition at line 56 of file dataFormatXmlNode.h.
Constructor & Destructor Documentation
| dodo::data::format::xml::node::node | ( | ) |
constructor
| dodo::data::format::xml::node::node | ( | const dodoString & | name, | |
| const dodoStringMap & | attributes, | |||
| const dodoString & | value, | |||
| const dodoString & | ns = __dodostring__ | |||
| ) |
Member Function Documentation
| void dodo::data::format::xml::node::addChild | ( | const node & | child | ) |
add child to the node
- Parameters:
-
child defines child to be appended
| dodoArray<node> dodo::data::format::xml::node::children | ( | const dodoString & | name, | |
| bool | recursive = false | |||
| ) |
- Returns:
- children of the node
- Parameters:
-
name defines name of child nodes to get recursive defines if walk through all children in deep
| dodoStringArray dodo::data::format::xml::node::childrenNames | ( | bool | recursive = false |
) |
- Returns:
- names of children nodes
- Parameters:
-
recursive defines if walk through all children in deep
| dodoString dodo::data::format::xml::node::operator[] | ( | const dodoString & | name | ) |
- Returns:
- attribute value
- Parameters:
-
name defines attribute name
| void dodo::data::format::xml::node::setChildren | ( | const dodoArray< node > & | children | ) |
set children of the node
- Parameters:
-
children defines children to be set
| void dodo::data::format::xml::node::setValue | ( | const dodoString & | value, | |
| bool | CDATA = false | |||
| ) |
set value of the node
- Parameters:
-
value defines value to be set CDATA defines if value is CDATA
| dodoString dodo::data::format::xml::node::value | ( | ) |
- Returns:
- value of the node
Member Data Documentation
attributes
Definition at line 135 of file dataFormatXmlNode.h.
bool dodo::data::format::xml::node::CDATA [protected] |
true if node contains CDATA
Definition at line 148 of file dataFormatXmlNode.h.
| dodoString dodo::data::format::xml::node::name |
name of the node [[tag]]
Definition at line 137 of file dataFormatXmlNode.h.
dodoMap<dodoString, dodoArray<node>, dodoMapStringCompare> dodo::data::format::xml::node::nodeChildren [protected] |
children
Definition at line 144 of file dataFormatXmlNode.h.
dodoString dodo::data::format::xml::node::nodeValue [protected] |
value of the node
Definition at line 146 of file dataFormatXmlNode.h.
namespace of the node
Definition at line 139 of file dataFormatXmlNode.h.
namespace definition of the node
Definition at line 140 of file dataFormatXmlNode.h.
The documentation for this class was generated from the following file:
- include/libdodo/dataFormatXmlNode.h
Generated on Sun Nov 8 03:44:48 2009 for libdodo by
1.6.1

