Crazy Eddie's GUI System  0.8.4
CEGUI::XercesParser Class Reference

Implementation of XMLParser using Xerces-C++. More...

+ Inheritance diagram for CEGUI::XercesParser:
+ Collaboration diagram for CEGUI::XercesParser:

List of all members.

Public Member Functions

void parseXML (XMLHandler &handler, const RawDataContainer &source, const String &schemaName)
 abstract method which initiates parsing of an XML.

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, unsigned int length)
 Return a CEGUI::String containing the Xerces XMLChar string data in xmlch_str.
static void setSchemaDefaultResourceGroup (const String &resourceGroup)
 Sets the default resource group to be used when loading schema files.
static const StringgetSchemaDefaultResourceGroup ()
 Returns the default resource group used when loading schema files.

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)
static
XERCES_CPP_NAMESPACE::SAX2XMLReader * 
createReader (XERCES_CPP_NAMESPACE::DefaultHandler &handler)
static void doParse (XERCES_CPP_NAMESPACE::SAX2XMLReader *parser, const RawDataContainer &source)

Static Protected Attributes

static String d_defaultSchemaResourceGroup
 holds the default resource group ID for loading schemas.
static
XercesParserProperties::SchemaDefaultResourceGroup 
s_schemaDefaultResourceGroupProperty
 Property for accessing the default schema resource group ID.

Detailed Description

Implementation of XMLParser using Xerces-C++.


Member Function Documentation

void CEGUI::XercesParser::cleanupImpl ( void  ) [protected, virtual]

abstract method which cleans up the XMLParser after use.

Returns:
Nothing.

Implements CEGUI::XMLParser.

static const String& CEGUI::XercesParser::getSchemaDefaultResourceGroup ( ) [inline, static]

Returns the default resource group used when loading schema files.

Returns:
String describing the default resource group identifier..
bool CEGUI::XercesParser::initialiseImpl ( void  ) [protected, virtual]

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::XercesParser::parseXML ( XMLHandler handler,
const RawDataContainer source,
const String schemaName 
) [virtual]

abstract method which initiates parsing of an XML.

Parameters:
handlerXMLHandler based object which will process the XML elements.
sourceRawDataContainer containing the data to parse
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.
Returns:
Nothing.

Implements CEGUI::XMLParser.

static void CEGUI::XercesParser::setSchemaDefaultResourceGroup ( const String resourceGroup) [inline, static]

Sets the default resource group to be used when loading schema files.

Parameters:
resourceGroupString describing the default resource group identifier to be used.
Returns:
Nothing.
static String CEGUI::XercesParser::transcodeXmlCharToString ( const XMLCh *const  xmlch_str,
unsigned int  length 
) [static]

Return a CEGUI::String containing the Xerces XMLChar string data in xmlch_str.

Parameters:
xmlch_strThe string data.
lengthThe size of the string data. It can be computed using
 XMLString::stringLen(xmlch_str) 
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends