#include <CEGUIXercesParser.h>
Inheritance diagram for CEGUI::XercesParser:
Public Member Functions | |
XercesParser (void) | |
~XercesParser (void) | |
void | parseXMLFile (XMLHandler &handler, const String &filename, const String &schemaName, const String &resourceGroup) |
abstract method which initiates parsing of an XML file. | |
bool | initialise (void) |
Initialises the XMLParser module ready for use. | |
void | cleanup (void) |
Cleans up the XMLParser module after use. | |
const String & | getIdentifierString () 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. | |
Static Public Member Functions | |
static void | populateAttributesBlock (const XERCES_CPP_NAMESPACE::Attributes &src, XMLAttributes &dest) |
Populate the CEGUI::XMLAttributes object with attribute data from the Xerces attributes block. | |
static String | transcodeXmlCharToString (const XMLCh *const xmlch_str) |
Return a CEGUI::String containing the Xerces XMLChar string data in xmlch_str. | |
Protected Member Functions | |
bool | initialiseImpl (void) |
abstract method which initialises the XMLParser ready for use. | |
void | cleanupImpl (void) |
abstract method which cleans up the XMLParser after use. | |
Static Protected Member Functions | |
static void | initialiseSchema (XERCES_CPP_NAMESPACE::SAX2XMLReader *reader, const String &schemaName, const String &xmlFilename, const String &resourceGroup) |
static XERCES_CPP_NAMESPACE::SAX2XMLReader * | createReader (XERCES_CPP_NAMESPACE::DefaultHandler &handler) |
static void | doParse (XERCES_CPP_NAMESPACE::SAX2XMLReader *parser, const String &xmlFilename, const String &resourceGroup) |
Protected Attributes | |
String | d_identifierString |
String that holds some id information about the module. |
Definition at line 63 of file CEGUIXercesParser.h.
|
Definition at line 43 of file CEGUIXercesParser.cpp. References CEGUI::XMLParser::d_identifierString. |
|
Definition at line 49 of file CEGUIXercesParser.cpp. |
|
Cleans up the XMLParser module after use. Note that this calls the protected abstract method 'cleanupImpl', which should be provided in your implementation to perform any required cleanup.
Definition at line 49 of file CEGUIXMLParser.cpp. References CEGUI::XMLParser::cleanupImpl(). Referenced by CEGUI::System::~System(). |
|
abstract method which cleans up the XMLParser after use.
Implements CEGUI::XMLParser. Definition at line 130 of file CEGUIXercesParser.cpp. |
|
Definition at line 236 of file CEGUIXercesParser.cpp. Referenced by parseXMLFile(). |
|
Definition at line 252 of file CEGUIXercesParser.cpp. References CEGUI::String::c_str(), CEGUI::DataContainer< T >::getDataPtr(), CEGUI::System::getResourceProvider(), CEGUI::System::getSingleton(), CEGUI::DataContainer< T >::getSize(), CEGUI::ResourceProvider::loadRawDataContainer(), and CEGUI::ResourceProvider::unloadRawDataContainer(). Referenced by parseXMLFile(). |
|
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.
Definition at line 58 of file CEGUIXMLParser.cpp. References CEGUI::XMLParser::d_identifierString. |
|
Initialises the XMLParser module ready for use. Note that this calls the protected abstract method 'initialiseImpl', which should be provided in your implementation to perform any required initialisation.
Definition at line 38 of file CEGUIXMLParser.cpp. References CEGUI::XMLParser::initialiseImpl(). |
|
abstract method which initialises the XMLParser ready for use.
Implements CEGUI::XMLParser. Definition at line 106 of file CEGUIXercesParser.cpp. References CEGUI::String::c_str(). |
|
|
abstract method which initiates parsing of an XML file.
Implements CEGUI::XMLParser. Definition at line 52 of file CEGUIXercesParser.cpp. References createReader(), doParse(), CEGUI::Errors, CEGUI::Logger::getSingleton(), initialiseSchema(), CEGUI::Logger::logEvent(), and CEGUI::PropertyHelper::uintToString(). |
|
Populate the CEGUI::XMLAttributes object with attribute data from the Xerces attributes block.
Definition at line 137 of file CEGUIXercesParser.cpp. References CEGUI::XMLAttributes::add(), and transcodeXmlCharToString(). Referenced by CEGUI::XercesHandler::startElement(). |
|
Return a CEGUI::String containing the Xerces XMLChar string data in xmlch_str.
Definition at line 150 of file CEGUIXercesParser.cpp. References CEGUI::String::append(). Referenced by CEGUI::XercesHandler::endElement(), populateAttributesBlock(), and CEGUI::XercesHandler::startElement(). |
|
String that holds some id information about the module.
Definition at line 132 of file CEGUIXMLParser.h. Referenced by CEGUI::XMLParser::getIdentifierString(), CEGUI::TinyXMLParser::TinyXMLParser(), and XercesParser(). |