Pin
|
Public Member Functions | |
SimpleXMLParser (std::istream *input) | |
bool | parse () |
std::string | getErrorString () |
Protected Member Functions | |
virtual void | visitNode ()=0 |
size_t | getElementsStackCount () |
const std::string & | getElementName (size_t n) |
std::string | getInnermostElementText () |
class that provides XML parsing capabilities
|
inline |
Creates a new XML parser instance.
[in] | input | - Pointer to an instance of istream from while the XML can be read. |
|
inlineprotected |
Gets the name of one of the nested nodes we're currently visiting (valid only inside visitNode()).
[in] | n | - The nesting level of the node that we want to get its name. while 0 being the outermode node. |
|
inlineprotected |
|
inline |
Get a string denoting the last error reason. Valid only after calling parse().
|
inlineprotected |
bool LEVEL_BASE::SimpleXMLParser::parse | ( | ) |
Parse the XML by reading characters from the input stream.
|
protectedpure virtual |
This function should be overriden by subclasses of this class. It is called after parsing on each XML node (particularily when the parser encounters the node closes token).