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

#include <dochandler.h>

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

Public Member Functions

 ParameterListHandler (IBaseHandler *parent)
 
virtual ~ParameterListHandler ()
 
virtual void startParameterList (const QXmlAttributes &attrib)
 
virtual void endParameterList ()
 
virtual void startParameterItem (const QXmlAttributes &attrib)
 
virtual Kind kind () const
 
virtual Types sectType () const
 
virtual IDocIteratorparams () const
 
- Public Member Functions inherited from BaseHandler< ParameterListHandler >
 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< ParameterListHandler >
 ElementMapper ()
 
virtual ~ElementMapper ()
 
void addStartHandler (const char *key)
 
void addStartHandler (const char *key, ParameterListHandler *obj, void(ParameterListHandler::*handler)(const QXmlAttributes &))
 
void addEndHandler (const char *key)
 
void addEndHandler (const char *key, ParameterListHandler *obj, void(ParameterListHandler::*handler)())
 
- Public Member Functions inherited from IBaseHandler
virtual ~IBaseHandler ()
 

Private Attributes

IBaseHandlerm_parent
 
QList< ParameterItemHandlerm_paramItems
 
Types m_type
 

Friends

class ParameterListIterator
 

Additional Inherited Members

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

Detailed Description

Definition at line 472 of file dochandler.h.

Constructor & Destructor Documentation

ParameterListHandler::ParameterListHandler ( IBaseHandler parent)

Definition at line 631 of file dochandler.cpp.

632  : m_parent(parent)
633 {
637 }
virtual void endParameterList()
Definition: dochandler.cpp:657
virtual void startParameterItem(const QXmlAttributes &attrib)
Definition: dochandler.cpp:662
void addStartHandler(const char *key)
Definition: basehandler.h:91
QList< ParameterItemHandler > m_paramItems
Definition: dochandler.h:490
void setAutoDelete(bool enable)
Definition: qlist.h:99
const bool TRUE
Definition: qglobal.h:371
void addEndHandler(const char *key)
Definition: basehandler.h:101
IBaseHandler * m_parent
Definition: dochandler.h:489
ParameterListHandler::~ParameterListHandler ( )
virtual

Definition at line 639 of file dochandler.cpp.

640 {
641 }

Member Function Documentation

void ParameterListHandler::endParameterList ( )
virtual

Definition at line 657 of file dochandler.cpp.

658 {
659  m_parent->setDelegate(0);
660 }
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
IBaseHandler * m_parent
Definition: dochandler.h:489
virtual Kind ParameterListHandler::kind ( ) const
inlinevirtual

Definition at line 484 of file dochandler.h.

IDocIterator * ParameterListHandler::params ( ) const
virtual

Definition at line 669 of file dochandler.cpp.

670 {
671  return new ParameterListIterator(*this);
672 }
friend class ParameterListIterator
Definition: dochandler.h:475
virtual Types ParameterListHandler::sectType ( ) const
inlinevirtual

Definition at line 485 of file dochandler.h.

485 { return m_type; }
void ParameterListHandler::startParameterItem ( const QXmlAttributes attrib)
virtual

Definition at line 662 of file dochandler.cpp.

663 {
664  ParameterItemHandler *paramItem = new ParameterItemHandler(this);
665  m_paramItems.append(paramItem);
666  paramItem->startParameterItem(attrib);
667 }
void append(const type *d)
Definition: qlist.h:73
virtual void startParameterItem(const QXmlAttributes &attrib)
Definition: dochandler.cpp:599
QList< ParameterItemHandler > m_paramItems
Definition: dochandler.h:490
void ParameterListHandler::startParameterList ( const QXmlAttributes attrib)
virtual

Definition at line 643 of file dochandler.cpp.

644 {
645  QString kind = attrib.value("kind");
646  if (kind=="retval") m_type=RetVal;
647  else if (kind=="exception") m_type=Exception;
648  else if (kind=="param") m_type=Param;
649  else
650  {
651  debug(1,"Error: invalid parameterlist type: %s\n",kind.data());
652  }
653  debug(2,"parameterlist kind=%s\n",kind.data());
654  m_parent->setDelegate(this);
655 }
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
Definition: qstring.h:350
QString value(int index) const
Definition: qxml.cpp:664
const char * data() const
Definition: qstring.h:542
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
virtual Kind kind() const
Definition: dochandler.h:484
IBaseHandler * m_parent
Definition: dochandler.h:489

Friends And Related Function Documentation

friend class ParameterListIterator
friend

Definition at line 475 of file dochandler.h.

Member Data Documentation

QList<ParameterItemHandler> ParameterListHandler::m_paramItems
private

Definition at line 490 of file dochandler.h.

IBaseHandler* ParameterListHandler::m_parent
private

Definition at line 489 of file dochandler.h.

Types ParameterListHandler::m_type
private

Definition at line 491 of file dochandler.h.


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