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

#include <dochandler.h>

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

Public Member Functions

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

Private Attributes

IBaseHandlerm_parent
 
QList< ParameterHandlerm_parameters
 
ParagraphHandlerm_description
 

Friends

class ParameterItemIterator
 

Additional Inherited Members

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

Detailed Description

Definition at line 437 of file dochandler.h.

Constructor & Destructor Documentation

ParameterItemHandler::ParameterItemHandler ( IBaseHandler parent)

Definition at line 580 of file dochandler.cpp.

581  : m_parent(parent)
582 {
584  addStartHandler("parameternamelist");
585  addEndHandler("parameternamelist");
587  addStartHandler("parameterdescription");
588  addEndHandler("parameterdescription");
591  m_description = 0;
592 }
QList< ParameterHandler > m_parameters
Definition: dochandler.h:456
IBaseHandler * m_parent
Definition: dochandler.h:455
virtual void startParameterName(const QXmlAttributes &attrib)
Definition: dochandler.cpp:609
virtual void startParagraph(const QXmlAttributes &attrib)
Definition: dochandler.cpp:616
virtual void endParameterItem()
Definition: dochandler.cpp:604
void addStartHandler(const char *key)
Definition: basehandler.h:91
ParagraphHandler * m_description
Definition: dochandler.h:457
void setAutoDelete(bool enable)
Definition: qlist.h:99
const bool TRUE
Definition: qglobal.h:371
void addEndHandler(const char *key)
Definition: basehandler.h:101
ParameterItemHandler::~ParameterItemHandler ( )
virtual

Definition at line 594 of file dochandler.cpp.

595 {
596  delete m_description;
597 }
ParagraphHandler * m_description
Definition: dochandler.h:457

Member Function Documentation

virtual IDocPara* ParameterItemHandler::description ( ) const
inlinevirtual

Definition at line 452 of file dochandler.h.

452 { return m_description; }
ParagraphHandler * m_description
Definition: dochandler.h:457
void ParameterItemHandler::endParameterItem ( )
virtual

Definition at line 604 of file dochandler.cpp.

605 {
606  m_parent->setDelegate(0);
607 }
IBaseHandler * m_parent
Definition: dochandler.h:455
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
virtual Kind ParameterItemHandler::kind ( ) const
inlinevirtual

Definition at line 450 of file dochandler.h.

IDocIterator * ParameterItemHandler::paramNames ( ) const
virtual

Definition at line 622 of file dochandler.cpp.

623 {
624  return new ParameterItemIterator(*this);
625 }
friend class ParameterItemIterator
Definition: dochandler.h:440
void ParameterItemHandler::startParagraph ( const QXmlAttributes attrib)
virtual

Definition at line 616 of file dochandler.cpp.

617 {
618  m_description = new ParagraphHandler(this);
619  m_description->startParagraph(attrib);
620 }
Node representing a paragraph of text and commands.
Definition: dochandler.h:196
virtual void startParagraph(const QXmlAttributes &attrib)
ParagraphHandler * m_description
Definition: dochandler.h:457
void ParameterItemHandler::startParameterItem ( const QXmlAttributes attrib)
virtual

Definition at line 599 of file dochandler.cpp.

600 {
601  m_parent->setDelegate(this);
602 }
IBaseHandler * m_parent
Definition: dochandler.h:455
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
void ParameterItemHandler::startParameterName ( const QXmlAttributes attrib)
virtual

Definition at line 609 of file dochandler.cpp.

610 {
611  ParameterHandler *param = new ParameterHandler(this);
612  m_parameters.append(param);
613  param->startParameterName(attrib);
614 }
QList< ParameterHandler > m_parameters
Definition: dochandler.h:456
void append(const type *d)
Definition: qlist.h:73
Node representing a parameter.
Definition: dochandler.h:414
virtual void startParameterName(const QXmlAttributes &attrib)
Definition: dochandler.cpp:563

Friends And Related Function Documentation

friend class ParameterItemIterator
friend

Definition at line 440 of file dochandler.h.

Member Data Documentation

ParagraphHandler* ParameterItemHandler::m_description
private

Definition at line 457 of file dochandler.h.

QList<ParameterHandler> ParameterItemHandler::m_parameters
private

Definition at line 456 of file dochandler.h.

IBaseHandler* ParameterItemHandler::m_parent
private

Definition at line 455 of file dochandler.h.


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