gloox
1.0.28
|
#include <parser.h>
Public Member Functions | |
Parser (TagHandler *ph, bool deleteRoot=true) | |
virtual | ~Parser () |
int | feed (std::string &data) |
void | cleanup (bool deleteRoot=true) |
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.
|
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 774 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.