This class implements an XML parser. More...
#include <parser.h>
Public Member Functions | |
Parser (TagHandler *ph, bool deleteRoot=true) | |
virtual | ~Parser () |
int | feed (std::string &data) |
void | cleanup (bool deleteRoot=true) |
This class implements an XML parser.
Definition at line 34 of file parser.h.
Parser | ( | TagHandler * | ph, | |
bool | deleteRoot = true | |||
) |
Constructs a new Parser object.
ph | The object to send incoming Tags to. | |
deleteRoot | Indicates whether a parsed Tag should be deleted after pushing it upstream. Defaults to true . |
Definition at line 22 of file parser.cpp.
~Parser | ( | ) | [virtual] |
Virtual destructor.
Definition at line 29 of file parser.cpp.
void cleanup | ( | bool | deleteRoot = true |
) |
Resets internal state.
deleteRoot | Whether to delete the m_root member. For internal use only. |
Definition at line 761 of file parser.cpp.
int feed | ( | std::string & | data | ) |
Use this function to feed the parser with more XML.
data | Raw xml to parse. It may be modified if backbuffering is necessary. |
Definition at line 161 of file parser.cpp.