Rocket::Core::BaseXMLParser Class Reference

#include <BaseXMLParser.h>

Inheritance diagram for Rocket::Core::BaseXMLParser:
Collaboration diagram for Rocket::Core::BaseXMLParser:

Public Member Functions

void RegisterCDATATag (const String &tag)
void Parse (Stream *stream)
int GetLineNumber ()
virtual void HandleElementStart (const String &name, const XMLAttributes &attributes)
 Called when the parser finds the beginning of an element tag.
virtual void HandleElementEnd (const String &name)
 Called when the parser finds the end of an element tag.
virtual void HandleData (const String &data)
 Called when the parser encounters data.

Protected Attributes

Streamxml_source

Detailed Description

Author:
Peter Curry

Member Function Documentation

void Rocket::Core::BaseXMLParser::RegisterCDATATag ( const String tag  ) 

Registers a tag as containing general character data. This will mean the contents of the tag will be parsed similarly to a CDATA tag (ie, no other markup will be recognised until the section's closing tag is found).

Parameters:
[in] tag The tag to register as containing generic character data.

void Rocket::Core::BaseXMLParser::Parse ( Stream stream  ) 

Parses the given stream as an XML file, and calls the handlers when interesting phenomena are encountered.

int Rocket::Core::BaseXMLParser::GetLineNumber (  ) 

Get the line number in the stream.

Returns:
The line currently being processed in the XML stream.


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