class Expat

This class helps us interface with expat.

Inheritance:


Public Methods

[more]void parse(string data)
This feeds more data into the parser
[more]void reset()
Deletes the expat datastructures and prepares a new one.

Protected Methods

[more]virtual void recievedTag( XMLNode &n)
This method is called whenever a new tag is recieved.
[more]virtual void rootTagRecieved(XMLNode &root)
This method is called when the first complete tag is recieved
[more]virtual void rootTagEnded()
This method is called when first tag recieved is ended.
[more]virtual void parserError(string errorMsg, int line )
This is any errors that expat produces.


Documentation

This class helps us interface with expat. This is the coolest class in the whole project. This class creates a nice clean interface between expat (which is C) and C++.

ovoid parse(string data)
This feeds more data into the parser

ovoid reset()
Deletes the expat datastructures and prepares a new one. Nice for soft resets. Used by XMLStream

ovirtual void recievedTag( XMLNode &n)
This method is called whenever a new tag is recieved. You should ovveride this.

ovirtual void rootTagRecieved(XMLNode &root)
This method is called when the first complete tag is recieved

ovirtual void rootTagEnded()
This method is called when first tag recieved is ended. This usually means that the document is EOF.

ovirtual void parserError(string errorMsg, int line )
This is any errors that expat produces. The class will not work anymore after an error has been encountered unless you call reset.


Direct child classes:
XMLParser
Author:
Seth Hartbecke (gandalf@netins.net) @short Expat interface

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.