XMLNodes Class Reference

#include <XMLNodes.h>

List of all members.

Public Member Functions

 XMLNodes ()
 XMLNodes (string _name)
 XMLNodes (string _name, string _value)
virtual ~XMLNodes ()
void load (string filename)
void save (string filename)
XMLNodesaddChild (string name)
XMLNodesaddChild (string name, string value)
void deleteChild (string name)
XMLNodesfindChild (string name)
list< XMLNodes * > findAllChildren (string name)
string getName (void)
void setName (string _name)
string getValue (void)
void setValue (string _value)
unsigned int getSize ()

Public Attributes

list< XMLNodes * > children

Detailed Description

XML Parser


Constructor & Destructor Documentation

XMLNodes::XMLNodes (  ) 

Constructs a new empty XML node

XMLNodes::~XMLNodes (  )  [virtual]

Destcruction of the XML node


Member Function Documentation

XMLNodes * XMLNodes::addChild ( string  name,
string  value 
)

Adds a new child to a xml node name Name of the new child value Value of the new child

Returns:
The new child
XMLNodes * XMLNodes::addChild ( string  name  ) 

Adding a new child to a xml node name Name of the new child

Returns:
The new child node
void XMLNodes::deleteChild ( string  name  ) 

Delete a child node name Name of the child node which should be deleted

list< XMLNodes * > XMLNodes::findAllChildren ( string  name  ) 

Find all xml nodes of the given name name Name of the xml nodes which should be found

Returns:
Found xml nodes
XMLNodes * XMLNodes::findChild ( string  name  ) 

Finds a xml node of the given name name Name of the xml node which should be found

Returns:
Found xml node
string XMLNodes::getName ( void   ) 

Returns the name of the xml node to remember - always convert the name to upper case - it should already be

Returns:
name of the node
unsigned int XMLNodes::getSize (  ) 

Returns the size of the xml node

Returns:
size of the xml node
string XMLNodes::getValue ( void   ) 

Returns the value of the xml node

Returns:
Value of the xml node
void XMLNodes::load ( string  filename  ) 

Loads a new xml node (or tree) from a strem filename Filename

void XMLNodes::save ( string  filename  ) 

Saves a xml node (or tree) to a file filename Filename

void XMLNodes::setName ( string  _name  ) 

Sets the name of the choosen xml node to remember - always convert the name to upper case _name New name of the xml node

void XMLNodes::setValue ( string  _value  ) 

Sets the value of the xml node value Value to set


The documentation for this class was generated from the following files:

Generated on Tue Dec 8 16:10:51 2009 for VisLab by  doxygen 1.6.1