Public Member Functions | Protected Attributes | List of all members
TemplateParamListHandler Class Reference

#include <paramhandler.h>

Inheritance diagram for TemplateParamListHandler:
BaseHandler< TemplateParamListHandler > QXmlDefaultHandler ElementMapper< TemplateParamListHandler > LocatorContainer IBaseHandler QXmlContentHandler QXmlErrorHandler QXmlDTDHandler QXmlEntityResolver QXmlLexicalHandler QXmlDeclHandler

Public Member Functions

virtual void startParam (const QXmlAttributes &attrib)
 
virtual void endParam ()
 
virtual void startTemplateParamList (const QXmlAttributes &attrib)
 
virtual void endTemplateParamList ()
 
 TemplateParamListHandler (IBaseHandler *parent)
 
virtual ~TemplateParamListHandler ()
 
ParamIteratortemplateParams ()
 
- Public Member Functions inherited from BaseHandler< TemplateParamListHandler >
 BaseHandler ()
 
virtual ~BaseHandler ()
 
virtual bool startDocument ()
 
virtual bool startElement (const QString &namespaceURI, const QString &localName, const QString &name, const QXmlAttributes &attrib)
 
virtual bool endElement (const QString &namespaceURI, const QString &localName, const QString &name)
 
bool skippedEntity (const QString &s)
 
virtual bool characters (const QString &ch)
 
void setDelegate (QXmlDefaultHandler *delegate)
 
QXmlDefaultHandlerdelegate () const
 
void setFallBackHandler (IFallBackHandler *h)
 
IFallBackHandlerfallBackHandler () const
 
void setDocumentLocator (QXmlLocator *locator)
 
- Public Member Functions inherited from QXmlDefaultHandler
 QXmlDefaultHandler ()
 
virtual ~QXmlDefaultHandler ()
 
bool endDocument ()
 
bool startPrefixMapping (const QString &prefix, const QString &uri)
 
bool endPrefixMapping (const QString &prefix)
 
bool ignorableWhitespace (const QString &ch)
 
bool processingInstruction (const QString &target, const QString &data)
 
bool warning (const QXmlParseException &exception)
 
bool error (const QXmlParseException &exception)
 
bool fatalError (const QXmlParseException &exception)
 
bool notationDecl (const QString &name, const QString &publicId, const QString &systemId)
 
bool unparsedEntityDecl (const QString &name, const QString &publicId, const QString &systemId, const QString &notationName)
 
bool resolveEntity (const QString &publicId, const QString &systemId, QXmlInputSource *&ret)
 
bool startDTD (const QString &name, const QString &publicId, const QString &systemId)
 
bool endDTD ()
 
bool startCDATA ()
 
bool endCDATA ()
 
bool comment (const QString &ch)
 
bool attributeDecl (const QString &eName, const QString &aName, const QString &type, const QString &valueDefault, const QString &value)
 
bool internalEntityDecl (const QString &name, const QString &value)
 
bool externalEntityDecl (const QString &name, const QString &publicId, const QString &systemId)
 
QString errorString ()
 
- Public Member Functions inherited from QXmlContentHandler
virtual ~QXmlContentHandler ()
 
- Public Member Functions inherited from QXmlErrorHandler
virtual ~QXmlErrorHandler ()
 
- Public Member Functions inherited from QXmlDTDHandler
virtual ~QXmlDTDHandler ()
 
- Public Member Functions inherited from QXmlEntityResolver
virtual ~QXmlEntityResolver ()
 
- Public Member Functions inherited from QXmlLexicalHandler
virtual ~QXmlLexicalHandler ()
 
- Public Member Functions inherited from QXmlDeclHandler
virtual ~QXmlDeclHandler ()
 
- Public Member Functions inherited from ElementMapper< TemplateParamListHandler >
 ElementMapper ()
 
virtual ~ElementMapper ()
 
void addStartHandler (const char *key)
 
void addStartHandler (const char *key, TemplateParamListHandler *obj, void(TemplateParamListHandler::*handler)(const QXmlAttributes &))
 
void addEndHandler (const char *key)
 
void addEndHandler (const char *key, TemplateParamListHandler *obj, void(TemplateParamListHandler::*handler)())
 
- Public Member Functions inherited from IBaseHandler
virtual ~IBaseHandler ()
 

Protected Attributes

IBaseHandlerm_parent
 
QList< ParamHandlerm_templateParams
 
- Protected Attributes inherited from BaseHandler< TemplateParamListHandler >
QString m_curString
 
QString m_skipUntil
 
int m_skipCount
 
QXmlDefaultHandlerm_delegateHandler
 
IFallBackHandlerm_fallBackHandler
 
- Protected Attributes inherited from ElementMapper< TemplateParamListHandler >
QDict< StartElementHandlerTm_startHandlers
 
QDict< EndElementHandlerTm_endHandlers
 

Additional Inherited Members

- Public Types inherited from BaseHandler< TemplateParamListHandler >
typedef ElementMapper< TemplateParamListHandler >::StartElementHandlerT StartElementHandlerT
 
typedef ElementMapper< TemplateParamListHandler >::EndElementHandlerT EndElementHandlerT
 
- Public Types inherited from ElementMapper< TemplateParamListHandler >
typedef StartElementHandler StartElementHandlerT
 
typedef EndElementHandler EndElementHandlerT
 
- Static Public Attributes inherited from LocatorContainer
static QXmlLocators_theLocator =0
 

Detailed Description

Definition at line 82 of file paramhandler.h.

Constructor & Destructor Documentation

TemplateParamListHandler::TemplateParamListHandler ( IBaseHandler parent)

Definition at line 22 of file paramhandler.cpp.

22  : m_parent(parent)
23 {
25 
27 }
virtual void startParam(const QXmlAttributes &attrib)
virtual void endTemplateParamList()
IBaseHandler * m_parent
Definition: paramhandler.h:98
virtual TemplateParamListHandler::~TemplateParamListHandler ( )
inlinevirtual

Definition at line 93 of file paramhandler.h.

93 {}

Member Function Documentation

void TemplateParamListHandler::endParam ( )
virtual

Definition at line 36 of file paramhandler.cpp.

37 {
38 }
void TemplateParamListHandler::endTemplateParamList ( )
virtual

Definition at line 46 of file paramhandler.cpp.

47 {
49 }
IBaseHandler * m_parent
Definition: paramhandler.h:98
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
void TemplateParamListHandler::startParam ( const QXmlAttributes attrib)
virtual

Definition at line 29 of file paramhandler.cpp.

30 {
31  ParamHandler *ph = new ParamHandler(this);
32  ph->startParam(attrib);
34 }
void append(const type *d)
Definition: qlist.h:73
virtual void startParam(const QXmlAttributes &attrib)
QList< ParamHandler > m_templateParams
Definition: paramhandler.h:99
void TemplateParamListHandler::startTemplateParamList ( const QXmlAttributes attrib)
virtual

Definition at line 40 of file paramhandler.cpp.

41 {
42  m_parent->setDelegate(this);
43  debug(2,"templateparamlist\n");
44 }
IBaseHandler * m_parent
Definition: paramhandler.h:98
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
ParamIterator* TemplateParamListHandler::templateParams ( )
inline

Definition at line 95 of file paramhandler.h.

95 { return new ParamIterator(m_templateParams); }
QList< ParamHandler > m_templateParams
Definition: paramhandler.h:99

Member Data Documentation

IBaseHandler* TemplateParamListHandler::m_parent
protected

Definition at line 98 of file paramhandler.h.

QList<ParamHandler> TemplateParamListHandler::m_templateParams
protected

Definition at line 99 of file paramhandler.h.


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