Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | Public Attributes | List of all members
om::xml::XMLSAXParser::Delegate Class Reference

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

Detailed Description

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

Constructor & Destructor Documentation

om::xml::XMLSAXParser::Delegate::Delegate ( )
inline

Create a new XML parser delegate object.

Member Data Documentation

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.

Function<void ( const Delegate&, const UTF8String& )> om::xml::XMLSAXParser::Delegate::endElement

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.

Function<void ( const Delegate&, const UTF8String& )> om::xml::XMLSAXParser::Delegate::text

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.

Function<void ( const Delegate&, const UTF8String& )> om::xml::XMLSAXParser::Delegate::comment

The delegate callback function for when a comment is parsed.

The parser provides the tag string for the element that is ending.

Function<void ( const Delegate&, const UTF8String& )> om::xml::XMLSAXParser::Delegate::error

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.


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