Crazy Eddie's GUI System  0.8.7
CEGUI::XMLHandler Class Referenceabstract

Inherited by CEGUI::ChainedXMLHandler, CEGUI::Config_xmlHandler, CEGUI::Font_xmlHandler, CEGUI::GUILayout_xmlHandler, and CEGUI::Scheme_xmlHandler.

Public Member Functions

 XMLHandler (void)
 XMLHandler base class constructor.
 
virtual ~XMLHandler (void)
 XMLHandler base class destructor.
 
virtual const StringgetSchemaName () const
 Retrieves the schema file name to use with resources handled by this handler.
 
virtual const StringgetDefaultResourceGroup () const =0
 Retrieves the default resource group to be used when handling files.
 
void handleContainer (const RawDataContainer &source)
 Takes given RawDataContainer containing XML and handles it. More...
 
void handleFile (const String &fileName, const String &resourceGroup)
 Takes given file containing XML and handles it. More...
 
void handleString (const String &source)
 Takes given string containing XML source and handles it. More...
 
virtual void elementStart (const String &element, const XMLAttributes &attributes)
 Method called to notify the handler at the start of each XML element encountered. More...
 
virtual void elementEnd (const String &element)
 Method called to notify the handler at the end of each XML element encountered. More...
 
virtual void text (const String &text)
 Method called to notify text node, several successiv text node are agregated. More...
 

Member Function Documentation

virtual void CEGUI::XMLHandler::elementEnd ( const String element)
virtual

Method called to notify the handler at the end of each XML element encountered.

Parameters
elementString object holding the name of the element that is ending.
Returns
Nothing.

Reimplemented in CEGUI::Config_xmlHandler, CEGUI::Font_xmlHandler, CEGUI::GUILayout_xmlHandler, CEGUI::Scheme_xmlHandler, and CEGUI::ChainedXMLHandler.

virtual void CEGUI::XMLHandler::elementStart ( const String element,
const XMLAttributes attributes 
)
virtual

Method called to notify the handler at the start of each XML element encountered.

Parameters
elementString object holding the name of the element that is starting.
attributesAn XMLAttributes object holding the collection of attributes specified for the element.
Returns
Nothing.

Reimplemented in CEGUI::Config_xmlHandler, CEGUI::Font_xmlHandler, CEGUI::GUILayout_xmlHandler, CEGUI::Scheme_xmlHandler, and CEGUI::ChainedXMLHandler.

void CEGUI::XMLHandler::handleContainer ( const RawDataContainer source)

Takes given RawDataContainer containing XML and handles it.

This is basically a convenience function used by NamedXMLResourceManager

void CEGUI::XMLHandler::handleFile ( const String fileName,
const String resourceGroup 
)

Takes given file containing XML and handles it.

This is basically a convenience function used by NamedXMLResourceManager

void CEGUI::XMLHandler::handleString ( const String source)

Takes given string containing XML source and handles it.

This is basically a convenience function used by NamedXMLResourceManager

virtual void CEGUI::XMLHandler::text ( const String text)
virtual

Method called to notify text node, several successiv text node are agregated.

Parameters
textString object holding the content of the text node.
Returns
Nothing.

Reimplemented in CEGUI::GUILayout_xmlHandler.