#include <xmlparserbase.h>
Inheritance diagram for XmlParserBase:
Public Methods | |
XmlParserBase (void) | |
A constructor. More... | |
XmlParserBase (const XmlChar *encoding) | |
A constructor with an encoding. More... | |
virtual | ~XmlParserBase (void) |
A destructor. More... | |
virtual void | setInputDevice (IODevice *dev) |
Set input device. More... | |
virtual void | setXmlModel (XmlModelBase *model) |
Set XML model. More... | |
virtual long | parse (void) throw (ExaltParserException, ExaltEncodingException, ExaltIOException) |
Parse XML data stream. More... | |
virtual long | parsePush (const char *data, int length, bool isFinal) throw (ExaltParserException, ExaltEncodingException, ExaltIOException) |
Parse XML data in a buffer (PUSH parser). More... | |
Protected Methods | |
void | init_ (void) |
Initialize the parser. More... | |
Protected Attributes | |
IODevice * | inputDevice |
The input device. | |
XmlModelBase * | xmlModel |
The XML model. |
This class implements a simple Expat-based XML parser. It defines all the basic handlers (which are mostly doing nothing) and serves as a base class for inhering of new parsers.
Definition at line 41 of file xmlparserbase.h.
|
A constructor.
Calls init_(). Definition at line 49 of file xmlparserbase.h. References init_. |
|
A constructor with an encoding.
Definition at line 61 of file xmlparserbase.h. |
|
A destructor.
Does nothing. Definition at line 72 of file xmlparserbase.h. |
|
Initialize the parser.
Initializes the member variables of the class. Definition at line 132 of file xmlparserbase.h. Referenced by XmlParserBase. |
|
Parse XML data stream.
Reimplemented in XmlParser. Definition at line 101 of file xmlparserbase.h. |
|
Parse XML data in a buffer (PUSH parser).
Always returns true.
Reimplemented in XmlParser. Definition at line 114 of file xmlparserbase.h. |
|
Set input device.
Sets an input device for the parser. XML data stream is supposed to come from this device.
Definition at line 81 of file xmlparserbase.h. References inputDevice. Referenced by XmlCodec::encode. |
|
Set XML model.
All XML events (NOT SAX events which are handled by the parser itself) that are generated during parsing, are sent to this model.
Definition at line 93 of file xmlparserbase.h. References xmlModel. Referenced by XmlCodec::encode, and XmlCodec::initializePushCoder. |