Rocket::Core::XMLNodeHandler Class Reference

#include <XMLNodeHandler.h>

Inheritance diagram for Rocket::Core::XMLNodeHandler:
Collaboration diagram for Rocket::Core::XMLNodeHandler:

Public Member Functions

virtual ElementElementStart (XMLParser *parser, const String &name, const XMLAttributes &attributes)=0
virtual bool ElementEnd (XMLParser *parser, const String &name)=0
virtual bool ElementData (XMLParser *parser, const String &data)=0
virtual void Release ()=0
 Called to release the node handler.

Protected Member Functions

virtual void OnReferenceDeactivate ()
 A hook method called when the reference count drops to 0.

Detailed Description

A handler gets ElementStart, ElementEnd and ElementData called by the XMLParser.

Author:
Lloyd Weehuizen

Member Function Documentation

virtual Element* Rocket::Core::XMLNodeHandler::ElementStart ( XMLParser parser,
const String name,
const XMLAttributes attributes 
) [pure virtual]

Called when a new element tag is opened.

Parameters:
parser The parser executing the parse.
name The XML tag name.
attributes The tag attributes.
Returns:
The new element, may be NULL if no element was created.

Implemented in Rocket::Controls::XMLNodeHandlerDataGrid, Rocket::Controls::XMLNodeHandlerTabSet, Rocket::Controls::XMLNodeHandlerTextArea, Rocket::Core::XMLNodeHandlerBody, Rocket::Core::XMLNodeHandlerDefault, Rocket::Core::XMLNodeHandlerHead, and Rocket::Core::XMLNodeHandlerTemplate.

virtual bool Rocket::Core::XMLNodeHandler::ElementEnd ( XMLParser parser,
const String name 
) [pure virtual]

virtual bool Rocket::Core::XMLNodeHandler::ElementData ( XMLParser parser,
const String data 
) [pure virtual]


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