Public Member Functions | Private Attributes | List of all members
ParameterHandler Class Reference

Node representing a parameter. More...

#include <dochandler.h>

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

Public Member Functions

 ParameterHandler (IBaseHandler *parent)
 
virtual ~ParameterHandler ()
 
virtual void startParameterName (const QXmlAttributes &attrib)
 
virtual void endParameterName ()
 
virtual Kind kind () const
 
virtual const IStringname () const
 
- Public Member Functions inherited from BaseHandler< ParameterHandler >
 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< ParameterHandler >
 ElementMapper ()
 
virtual ~ElementMapper ()
 
void addStartHandler (const char *key)
 
void addStartHandler (const char *key, ParameterHandler *obj, void(ParameterHandler::*handler)(const QXmlAttributes &))
 
void addEndHandler (const char *key)
 
void addEndHandler (const char *key, ParameterHandler *obj, void(ParameterHandler::*handler)())
 
- Public Member Functions inherited from IBaseHandler
virtual ~IBaseHandler ()
 

Private Attributes

IBaseHandlerm_parent
 
StringImpl m_name
 

Additional Inherited Members

- Public Types inherited from BaseHandler< ParameterHandler >
typedef ElementMapper< ParameterHandler >::StartElementHandlerT StartElementHandlerT
 
typedef ElementMapper< ParameterHandler >::EndElementHandlerT EndElementHandlerT
 
- Public Types inherited from ElementMapper< ParameterHandler >
typedef StartElementHandler StartElementHandlerT
 
typedef EndElementHandler EndElementHandlerT
 
- Static Public Attributes inherited from LocatorContainer
static QXmlLocators_theLocator =0
 
- Protected Attributes inherited from BaseHandler< ParameterHandler >
QString m_curString
 
QString m_skipUntil
 
int m_skipCount
 
QXmlDefaultHandlerm_delegateHandler
 
IFallBackHandlerm_fallBackHandler
 
- Protected Attributes inherited from ElementMapper< ParameterHandler >
QDict< StartElementHandlerTm_startHandlers
 
QDict< EndElementHandlerTm_endHandlers
 

Detailed Description

Node representing a parameter.

Definition at line 414 of file dochandler.h.

Constructor & Destructor Documentation

ParameterHandler::ParameterHandler ( IBaseHandler parent)

Definition at line 553 of file dochandler.cpp.

553  :
554  m_parent(parent)
555 {
556  addEndHandler("parametername",this,&ParameterHandler::endParameterName);
557 }
virtual void endParameterName()
Definition: dochandler.cpp:568
IBaseHandler * m_parent
Definition: dochandler.h:428
void addEndHandler(const char *key)
Definition: basehandler.h:101
ParameterHandler::~ParameterHandler ( )
virtual

Definition at line 559 of file dochandler.cpp.

560 {
561 }

Member Function Documentation

void ParameterHandler::endParameterName ( )
virtual

Definition at line 568 of file dochandler.cpp.

569 {
571  debug(2,"parameter %s\n",m_name.data());
572  m_curString="";
573  m_parent->setDelegate(0);
574 }
IBaseHandler * m_parent
Definition: dochandler.h:428
const char * data() const
Definition: qstring.h:542
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
StringImpl m_name
Definition: dochandler.h:429
virtual Kind ParameterHandler::kind ( ) const
inlinevirtual

Definition at line 424 of file dochandler.h.

virtual const IString* ParameterHandler::name ( ) const
inlinevirtual

Definition at line 425 of file dochandler.h.

425 { return &m_name; }
StringImpl m_name
Definition: dochandler.h:429
void ParameterHandler::startParameterName ( const QXmlAttributes attrib)
virtual

Definition at line 563 of file dochandler.cpp.

564 {
565  m_parent->setDelegate(this);
566 }
IBaseHandler * m_parent
Definition: dochandler.h:428
virtual void setDelegate(QXmlDefaultHandler *delegate)=0

Member Data Documentation

StringImpl ParameterHandler::m_name
private

Definition at line 429 of file dochandler.h.

IBaseHandler* ParameterHandler::m_parent
private

Definition at line 428 of file dochandler.h.


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