Om
1.0.0
A universal framework for multimedia simulation
|
A class that contains callback functions that are used to recieve XML data by the user. More...
#include <omXMLSAXParser.h>
Public Member Functions | |
Delegate () | |
Create a new XML parser delegate object. More... | |
Public Attributes | |
Function< void(const Delegate &, const UTF8String &, const ArrayList< XMLAttribute > &)> | startElement |
The delegate callback function for when the start of an XML element is parsed. More... | |
Function< void(const Delegate &, const UTF8String &)> | endElement |
The delegate callback function for when the end of an XML element is parsed. More... | |
Function< void(const Delegate &, const UTF8String &)> | text |
The delegate callback function for when text data between elements is parsed. More... | |
Function< void(const Delegate &, const UTF8String &)> | comment |
The delegate callback function for when a comment is parsed. More... | |
Function< void(const Delegate &, const UTF8String &)> | error |
The delegate callback function for when a parse error occurs. More... | |
void * | userData |
A pointer to data that can store user-specific information for the delegate. More... | |
A class that contains callback functions that are used to recieve XML data by the user.
The callback functions may be NULL if the user does not need access to a specific kind of document data (such as comments or parse errors).
|
inline |
Create a new XML parser delegate object.
Function<void ( const Delegate&, const UTF8String&, const ArrayList<XMLAttribute>& )> om::xml::XMLSAXParser::Delegate::startElement |
The delegate callback function for when the start of an XML element is parsed.
The parser provides the tag string and a list of the attributes for the element that is starting.
The delegate callback function for when the end of an XML element is parsed.
The parser provides the tag string for the element that is ending.
The delegate callback function for when text data between elements is parsed.
The parser provides a string that contains the text between the last element and the next.
The delegate callback function for when a comment is parsed.
The parser provides the tag string for the element that is ending.
The delegate callback function for when a parse error occurs.
The parser provides a string which describes the error that occurred.
void* om::xml::XMLSAXParser::Delegate::userData |
A pointer to data that can store user-specific information for the delegate.