gloox  0.9.9.12
Public Member Functions | List of all members
Parser Class Reference

#include <parser.h>

Public Member Functions

 Parser (TagHandler *ph)
virtual ~Parser ()
bool feed (const std::string &data)
void reset ()

Detailed Description

This class implements an XML parser.

Author
Jakob Schroeter js@ca.nosp@m.maya.nosp@m..net
Since
0.9

Definition at line 34 of file parser.h.

Constructor & Destructor Documentation

Parser ( TagHandler ph)

Constructs a new Parser object.

Parameters
phThe object to send incoming Tags to.

Definition at line 22 of file parser.cpp.

~Parser ( )
virtual

Virtual destructor.

Definition at line 28 of file parser.cpp.

Member Function Documentation

bool feed ( const std::string &  data)

Use this function to feed the parser with more XML.

Parameters
dataRaw xml to parse.
Returns
Returns true if parsing was successful, false otherwise.

Definition at line 33 of file parser.cpp.

void reset ( )
inline

Rests the parser's internal state.

Definition at line 58 of file parser.h.


The documentation for this class was generated from the following files: