#include <XMLNodes.h>
Public Member Functions | |
XMLNodes () | |
XMLNodes (string _name) | |
XMLNodes (string _name, string _value) | |
virtual | ~XMLNodes () |
void | load (string filename) |
void | save (string filename) |
XMLNodes * | addChild (string name) |
XMLNodes * | addChild (string name, string value) |
void | deleteChild (string name) |
XMLNodes * | findChild (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 |
XML Parser
XMLNodes::XMLNodes | ( | ) |
Constructs a new empty XML node
XMLNodes::~XMLNodes | ( | ) | [virtual] |
Destcruction of the XML node
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
XMLNodes * XMLNodes::addChild | ( | string | name | ) |
Adding a new child to a xml node name Name of the new child
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
XMLNodes * XMLNodes::findChild | ( | string | name | ) |
Finds a xml node of the given name name Name of the xml node which should be found
string XMLNodes::getName | ( | void | ) |
Returns the name of the xml node to remember - always convert the name to upper case - it should already be
unsigned int XMLNodes::getSize | ( | ) |
Returns the size of the xml node
string XMLNodes::getValue | ( | void | ) |
Returns the 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