1 #include "XmlStackedHandlerReader.h" 6 #include "XmlStackedHandler.h" 9 XmlStackedHandlerReader::XmlStackedHandlerReader() {
10 m_contentHandlers = NULL;
15 XmlStackedHandlerReader::~XmlStackedHandlerReader() {
16 delete m_contentHandlers;
17 m_contentHandlers = NULL;
21 void XmlStackedHandlerReader::popContentHandler() {
22 m_contentHandlers->pop();
24 if (m_contentHandlers->size()) {
25 m_contentHandlers->top()->setReader(
this);
26 setContentHandler(m_contentHandlers->top());
29 setContentHandler(NULL);
52 newHandler->setReader(
this);
53 m_contentHandlers->push(newHandler);
55 setContentHandler(m_contentHandlers->top());
68 if (m_contentHandlers->size())
69 result = m_contentHandlers->top();
virtual void pushContentHandler(XmlStackedHandler *newHandler)
Push a contentHandler and maybe continue parsing...
XML Handler that parses XMLs in a stack-oriented way.
void switchToNewHandler(XmlStackedHandler *nextHandler)
Switch to a new content handler and continue processing using the new handler.
Namespace for ISIS/Bullet specific routines.