libexpatpp 0.1.8
Public Member Functions | Protected Member Functions | List of all members
xmlpp::StatefulDelegate Class Reference
Inheritance diagram for xmlpp::StatefulDelegate:
Inheritance graph
[legend]
Collaboration diagram for xmlpp::StatefulDelegate:
Collaboration graph
[legend]

Public Member Functions

void add_state (State *state)
 
Statecurrent_element () const
 
- Public Member Functions inherited from xmlpp::abstract_delegate
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
 

Protected 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.
 

Member Function Documentation

◆ onCharacterData()

void StatefulDelegate::onCharacterData ( const char *  pBuf,
int  len 
)
overrideprotectedvirtual

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.

Parameters
pBufpointer to the text data
lenlen of the returned string

Reimplemented from xmlpp::abstract_delegate.

◆ onEndElement()

void StatefulDelegate::onEndElement ( const XML_Char *  fullname)
overrideprotectedvirtual

callback is called after parsing the end tag of an xml element

Parameters
fullnamename of the ended sml element

Reimplemented from xmlpp::abstract_delegate.

◆ onStartElement()

void StatefulDelegate::onStartElement ( const XML_Char *  fullname,
const XML_Char **  atts 
)
overrideprotectedvirtual

this callback is called after parsing the starting tag of an xml element.

Parameters
fullnamename of the started xml element
attslist of elements attributes as list of key and value strings

Reimplemented from xmlpp::abstract_delegate.


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