libdodo: dodo::data::format::xml::node Class Reference

dodo::data::format::xml::node Class Reference

defines xml tree More...

#include <dataFormatXmlNode.h>

Collaboration diagram for dodo::data::format::xml::node:

List of all members.

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< nodechildren (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__ 
)

constructor

Parameters:
name defines name of the node
attributes defines node attributes
value devines node value
ns defines node namespace

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

true if node contains CDATA

Definition at line 148 of file dataFormatXmlNode.h.

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.

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:

Generated on Sun Nov 8 03:44:48 2009 for libdodo by  doxygen 1.6.1