libexpatpp 0.1.8
|
default base class for delegates. More...
#include <delegate.hpp>
Public Member Functions | |
void | onStartElement (const XML_Char *fullname, const XML_Char **atts) override |
this callback is called after parsing the starting tag of an xml element. | |
void | onEndElement (const XML_Char *fullname) override |
callback is called after parsing the end tag of an xml element | |
void | onCharacterData (const char *pBuf, int len) override |
callback is called with parsed character data inside of an xml element. | |
void | onProcessingInstruction (const XML_Char *target, const XML_Char *data) override |
delegate function is called if an xml processing instruction was found | |
void | onUnparsedEntityDecl (const XML_Char *entityName, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId, const XML_Char *notationName) override |
void | onNotationDecl (const XML_Char *notationName, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId) override |
delegate function is called if an notation declaration was parsed | |
void | onStartNamespace (const XML_Char *prefix, const XML_Char *uri) override |
delegate function is called when an xml namespace is started/ opened | |
void | onEndNamespace (const XML_Char *) override |
delegate function is called when an xml namespace is ended | |
void | onAttlistDecl (const XML_Char *elname, const XML_Char *attname, const XML_Char *att_type, const XML_Char *dflt, bool isrequired) override |
delegate function is called if an element attribute list declaration is parsed. | |
void | onStartCdataSection () override |
callback will be called if the begin of a PCDATA section was parsed | |
void | onEndCdataSection () override |
callback will be called after the end of a PCDATA section was parsed | |
void | onStartDoctypeDecl (const XML_Char *doctypeName, const XML_Char *sysid, const XML_Char *pubid, int has_internal_subset) override |
delegate function is called when a DTD (document type definition) xml entry is parsed. | |
void | onEndDoctypeDecl () override |
delegate function is called if end of DTD is parsed from xml data | |
void | onComment (const XML_Char *data) override |
callback called on parsed xml comment | |
void | onElementDecl (const XML_Char *name, XML_Content *model) override |
delegate function is called if an DTD element declaration is parsed from xml data. | |
void | onEntityDecl (const XML_Char *entityName, int is_parameter_entity, const XML_Char *value, int value_length, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId, const XML_Char *notationName) override |
delegate function is called if an entity declaration was parsed | |
void | onSkippedEntity (const XML_Char *entityName, int is_parameter_entity) override |
void | onXmlDecl (const XML_Char *version, const XML_Char *encoding, int standalone) override |
delegate function is called after the (starting) xml declaration is parsed. | |
void | onParseError (size_t line, size_t column, size_t pos, Error error) override |
function is called if on parsing a parse error is detected | |
default base class for delegates.
only needed methods needs to be overridden, all interface maethods have an empt default implementation
|
overridevirtual |
delegate function is called if an element attribute list declaration is parsed.
elname | name of the declared element this attribute list refers to |
attname | name of the declared attribute |
att_type | type of the declared attribute |
dflt | |
isrequired | true if attribute is required, false if optional |
Implements xmlpp::delegate.
|
overridevirtual |
callback is called with parsed character data inside of an xml element.
it may called more than once if the text inside of an xml element does not fit into the parse buffer.
pBuf | pointer to the text data |
len | len of the returned string |
Implements xmlpp::delegate.
Reimplemented in xmlpp::StatefulDelegate.
|
overridevirtual |
callback called on parsed xml comment
data | contains the content of the comment |
Implements xmlpp::delegate.
|
overridevirtual |
delegate function is called if an DTD element declaration is parsed from xml data.
for details of the model see expat library documentation
name | name of the declared element |
model | the content model for the declared element |
Implements xmlpp::delegate.
|
overridevirtual |
callback will be called after the end of a PCDATA section was parsed
Implements xmlpp::delegate.
|
overridevirtual |
delegate function is called if end of DTD is parsed from xml data
Implements xmlpp::delegate.
|
overridevirtual |
callback is called after parsing the end tag of an xml element
fullname | name of the ended sml element |
Implements xmlpp::delegate.
Reimplemented in xmlpp::StatefulDelegate.
|
overridevirtual |
delegate function is called when an xml namespace is ended
prefix | prefix of the xml namespace |
Implements xmlpp::delegate.
|
overridevirtual |
delegate function is called if an entity declaration was parsed
entityName | name of the declared entity |
is_parameter_entity | |
value | |
value_length | |
base | |
systemId | |
publicId | |
notationName |
Implements xmlpp::delegate.
|
overridevirtual |
delegate function is called if an notation declaration was parsed
notationName | name of the declared notation |
base | |
systemId | |
publicId |
Implements xmlpp::delegate.
|
overridevirtual |
function is called if on parsing a parse error is detected
line | line in xml file or string where the error is detected |
column | column in xml file or string where the error is detected |
pos | position of detected parse error in bytes from begin of parsing |
error | error code for type of parse error (wrapper for XML_Error from expat |
Implements xmlpp::delegate.
|
overridevirtual |
delegate function is called if an xml processing instruction was found
target | TODO |
data | TODO |
Implements xmlpp::delegate.
|
overridevirtual |
Implements xmlpp::delegate.
|
overridevirtual |
callback will be called if the begin of a PCDATA section was parsed
Implements xmlpp::delegate.
|
overridevirtual |
delegate function is called when a DTD (document type definition) xml entry is parsed.
doctypeName | name of the document type definition |
sysid | system Id |
pubid | public id |
has_internal_subset | dtd has an internal subset |
Implements xmlpp::delegate.
|
overridevirtual |
this callback is called after parsing the starting tag of an xml element.
fullname | name of the started xml element |
atts | list of elements attributes as list of key and value strings |
Implements xmlpp::delegate.
Reimplemented in xmlpp::StatefulDelegate.
|
overridevirtual |
delegate function is called when an xml namespace is started/ opened
prefix | prefix of the xml namespace |
uri | uri of namespace |
Implements xmlpp::delegate.
|
overridevirtual |
Implements xmlpp::delegate.
|
overridevirtual |
delegate function is called after the (starting) xml declaration is parsed.
version | the xml version |
encoding | the encoding of the following xml content |
standalone | 1 for standalone xml file |
Implements xmlpp::delegate.