Crazy Eddies GUI System  0.6.2
Public Member Functions | Protected Member Functions | List of all members
CEGUI::LibxmlParser Class Reference

Implementation of XMLParser using libxml. More...

+ Inheritance diagram for CEGUI::LibxmlParser:
+ Collaboration diagram for CEGUI::LibxmlParser:

Public Member Functions

void parseXMLFile (XMLHandler &handler, const String &filename, const String &schemaName, const String &resourceGroup)
 abstract method which initiates parsing of an XML file. More...
 
- Public Member Functions inherited from CEGUI::XMLParser
 XMLParser (void)
 XMLParser base class constructor.
 
virtual ~XMLParser (void)
 XMLParser base class destructor.
 
bool initialise (void)
 Initialises the XMLParser module ready for use. More...
 
void cleanup (void)
 Cleans up the XMLParser module after use. More...
 
const StringgetIdentifierString () const
 Return identification string for the XML parser module. If the internal id string has not been set by the XML parser module creator, a generic string of "Unknown XML parser" will be returned. More...
 

Protected Member Functions

bool initialiseImpl (void)
 abstract method which initialises the XMLParser ready for use. More...
 
void cleanupImpl (void)
 abstract method which cleans up the XMLParser after use. More...
 

Additional Inherited Members

- Protected Attributes inherited from CEGUI::XMLParser
String d_identifierString
 String that holds some id information about the module.
 

Detailed Description

Implementation of XMLParser using libxml.

Member Function Documentation

void CEGUI::LibxmlParser::cleanupImpl ( void  )
protectedvirtual

abstract method which cleans up the XMLParser after use.

Returns
Nothing.

Implements CEGUI::XMLParser.

bool CEGUI::LibxmlParser::initialiseImpl ( void  )
protectedvirtual

abstract method which initialises the XMLParser ready for use.

Returns
  • true if the module initialised successfully.
  • false if the module initialisation failed.

Implements CEGUI::XMLParser.

void CEGUI::LibxmlParser::parseXMLFile ( XMLHandler handler,
const String filename,
const String schemaName,
const String resourceGroup 
)
virtual

abstract method which initiates parsing of an XML file.

Parameters
handlerXMLHandler based object which will process the XML elements.
filenameString object holding the filename of the XML file to be parsed.
schemaNameString object holding the name of the XML schema file to use for validating the XML. Note that whether this is used or not is dependant upon the XMLParser in use.
resourceGroupString object holding the resource group identifier which will be passed to the ResourceProvider when loading the XML and schema files.
Returns
Nothing.

Implements CEGUI::XMLParser.

References CEGUI::RawDataContainer::getDataPtr(), CEGUI::System::getResourceProvider(), CEGUI::System::getSingleton(), CEGUI::RawDataContainer::getSize(), and CEGUI::ResourceProvider::loadRawDataContainer().