#include <wrapexpat.h>
Inheritance diagram for GNUMessenger::Expat:
Public Member Functions | |
void | parse (string data) |
This feeds more data into the parser. | |
void | reset () |
Deletes the expat datastructures and prepares a new one. | |
Static Public Member Functions | |
string | trim_right (const string &source, const string &t=" ") |
string | trim_left (const string &source, const string &t=" ") |
string | trim (const string &source, const string &t=" ") |
Protected Member Functions | |
virtual void | recievedTag (XMLNode &n) |
This method is called whenever a new tag is recieved. | |
virtual void | rootTagRecieved (XMLNode &root) |
This method is called when the first complete tag is recieved. | |
virtual void | rootTagEnded () |
This method is called when first tag recieved is ended. | |
virtual void | parserError (string errorMsg, int line) |
This is any errors that expat produces. |
This is the coolest class in the whole project. This class creates a nice clean interface between expat (which is C) and C++.
Definition at line 24 of file wrapexpat.h.
|
This is any errors that expat produces. The class will not work anymore after an error has been encountered unless you call reset. Definition at line 114 of file wrapexpat.cpp. References reset(). Referenced by parse().
Here is the call graph for this function: |
|
This method is called whenever a new tag is recieved. You should ovveride this. Reimplemented in GNUMessenger::XMLParser. Definition at line 97 of file wrapexpat.cpp. Referenced by parse().
|
|
Deletes the expat datastructures and prepares a new one. Nice for soft resets. Used by XMLStream Reimplemented in GNUMessenger::KitProtocol. Definition at line 70 of file wrapexpat.cpp. Referenced by parserError().
|
|
This method is called when first tag recieved is ended. This usually means that the document is EOF. Definition at line 109 of file wrapexpat.cpp.
|