Public Member Functions | |
| void | addChild (string const &name, string &value) |
| void | addChild (const char *name, const char *value) |
| void | addGroup (string const &name) |
| void | addGroup (const char *name) |
| void | addLineFeed () |
| int | close () |
| void | endGroup () |
| char * | getAttr (const char *field, const char *attr) |
| xmlDocPtr | getDoc () |
| time_t | getLastModTime () |
| char * | getValue (string const &field) |
| char * | getValue (const char *field) |
| void | newfile (string const &root) |
| void | newfile (const char *root) |
| int | open (string const &filename) |
| int | open (const char *filename) |
| int | openMemBuf (MemBuf &) |
| int | save (string const &filename, int *nbytes=0) |
| int | save (const char *filename, int *nbytes=0) |
| int | saveMemBuf (MemBuf &, int *nbytes=0) |
| void | setAttr (string &name, string &value) |
| void | setAttr (const char *name, const char *value) |
| int | setValue (const char *field, const char *value) |
| XmlParser () | |
| ~XmlParser () | |
Static Public Member Functions | |
| bool | cleanXML () |
| bool | startXML () |
Private Attributes | |
| string | buffer |
| xmlNodePtr | cur |
| xmlDocPtr | doc |
| xmlNodePtr | lastNode |
| time_t | mtime |
| xmlNodePtr | prevCur |
|
|
Constructor of the XmlParser class |
|
|
Destructor of the XmlParser class Destroys the XmlParser object |
|
||||||||||||
|
|
|
||||||||||||
|
Adds a new child element entry
|
|
|
|
|
|
Starts a new sub group Only one level for now
|
|
|
Adds a line feed to the XML data |
|
|
Cleans up the libxml2 library.
|
|
|
Frees the memory, use by the XmlParser class |
|
|
Ends the sub group, if any Only one level for now |
|
||||||||||||
|
Gets the attribute for the node field.
|
|
|
Returns the XML document
|
|
|
Gets the last modification time of the file
|
|
|
|
|
|
Gets the value of the vName root child element.
|
|
|
|
|
|
Starts a new XML tree for a new file
|
|
|
|
|
|
Opens a files and stores it in memory.
|
|
|
Read the XML data from a char array
|
|
||||||||||||
|
|
|
||||||||||||
|
Saves the XML tree into a file If no errors occur nbytes[optional] will contain the amount of written bytes
|
|
||||||||||||
|
Saves the XML tree into memory If no errors occur nbytes[optional] will contain the amount of written bytes
|
|
||||||||||||
|
|
|
||||||||||||
|
Sets an attribute, using the last node entry
|
|
||||||||||||
|
Sets the value of the vName root child element
|
|
|
Initializes the libxml2 library Calls xmlInitParser()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.9.1