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

#include <paramhandler.h>

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

Public Member Functions

virtual void startParam (const QXmlAttributes &attrib)
 
virtual void endParam ()
 
virtual void startType (const QXmlAttributes &attrib)
 
virtual void endDeclName ()
 
virtual void endDefName ()
 
virtual void endAttrib ()
 
virtual void endArray ()
 
virtual void startDefVal (const QXmlAttributes &attrib)
 
virtual void startBriefDesc (const QXmlAttributes &attrib)
 
 ParamHandler (IBaseHandler *parent)
 
virtual ~ParamHandler ()
 
virtual ILinkedTextIteratortype () const
 
virtual const IStringdeclarationName () const
 
virtual const IStringdefinitionName () const
 
virtual const IStringattrib () const
 
virtual const IStringarraySpecifier () const
 
virtual ILinkedTextIteratordefaultValue () const
 
virtual IDocRootbriefDescription () const
 
- Public Member Functions inherited from BaseHandler< ParamHandler >
 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< ParamHandler >
 ElementMapper ()
 
virtual ~ElementMapper ()
 
void addStartHandler (const char *key)
 
void addStartHandler (const char *key, ParamHandler *obj, void(ParamHandler::*handler)(const QXmlAttributes &))
 
void addEndHandler (const char *key)
 
void addEndHandler (const char *key, ParamHandler *obj, void(ParamHandler::*handler)())
 
- Public Member Functions inherited from IBaseHandler
virtual ~IBaseHandler ()
 

Private Attributes

QList< LinkedTextImplm_type
 
StringImpl m_declName
 
StringImpl m_defName
 
StringImpl m_array
 
QList< LinkedTextImplm_defVal
 
DocHandlerm_brief
 
StringImpl m_attrib
 
IBaseHandlerm_parent
 
LinkedTextHandlerm_linkedTextHandler
 

Additional Inherited Members

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

Detailed Description

Definition at line 33 of file paramhandler.h.

Constructor & Destructor Documentation

ParamHandler::ParamHandler ( IBaseHandler parent)

Definition at line 53 of file paramhandler.cpp.

53  : m_brief(0), m_parent(parent)
54 {
56 
58 
59  addStartHandler("declname");
60  addEndHandler("declname",this,&ParamHandler::endDeclName);
61 
62  addStartHandler("defname");
63  addEndHandler("defname",this,&ParamHandler::endDefName);
64 
65  addStartHandler("array");
67 
68  addStartHandler("attribute");
69  addEndHandler("attribute",this,&ParamHandler::endAttrib);
70 
71  addStartHandler("briefdescription",this,&ParamHandler::startBriefDesc);
72 
74 
76 }
virtual void endArray()
LinkedTextHandler * m_linkedTextHandler
Definition: paramhandler.h:72
virtual void endDeclName()
IBaseHandler * m_parent
Definition: paramhandler.h:71
virtual void endParam()
DocHandler * m_brief
Definition: paramhandler.h:67
virtual void endDefName()
virtual void startDefVal(const QXmlAttributes &attrib)
virtual void startBriefDesc(const QXmlAttributes &attrib)
virtual void endAttrib()
virtual void startType(const QXmlAttributes &attrib)
void addStartHandler(const char *key)
Definition: basehandler.h:91
void addEndHandler(const char *key)
Definition: basehandler.h:101
ParamHandler::~ParamHandler ( )
virtual

Definition at line 78 of file paramhandler.cpp.

79 {
80  delete m_brief;
81  delete m_linkedTextHandler;
82 }
LinkedTextHandler * m_linkedTextHandler
Definition: paramhandler.h:72
DocHandler * m_brief
Definition: paramhandler.h:67

Member Function Documentation

virtual const IString* ParamHandler::arraySpecifier ( ) const
inlinevirtual

Implements IParam.

Definition at line 54 of file paramhandler.h.

54 { return &m_array; }
StringImpl m_array
Definition: paramhandler.h:65
virtual const IString* ParamHandler::attrib ( ) const
inlinevirtual

Implements IParam.

Definition at line 53 of file paramhandler.h.

53 { return &m_attrib; }
StringImpl m_attrib
Definition: paramhandler.h:69
IDocRoot * ParamHandler::briefDescription ( ) const
virtual

Implements IParam.

Definition at line 152 of file paramhandler.cpp.

153 {
154  return m_brief;
155 }
DocHandler * m_brief
Definition: paramhandler.h:67
virtual const IString* ParamHandler::declarationName ( ) const
inlinevirtual

Implements IParam.

Definition at line 51 of file paramhandler.h.

51 { return &m_declName; }
StringImpl m_declName
Definition: paramhandler.h:63
ILinkedTextIterator * ParamHandler::defaultValue ( ) const
virtual

Implements IParam.

Definition at line 147 of file paramhandler.cpp.

148 {
149  return new LinkedTextIterator(m_defVal);
150 }
QList< LinkedTextImpl > m_defVal
Definition: paramhandler.h:66
virtual const IString* ParamHandler::definitionName ( ) const
inlinevirtual

Implements IParam.

Definition at line 52 of file paramhandler.h.

52 { return &m_defName; }
StringImpl m_defName
Definition: paramhandler.h:64
void ParamHandler::endArray ( )
virtual

Definition at line 121 of file paramhandler.cpp.

122 {
124  debug(2,"member array=`%s'\n",m_array.data());
125 }
const char * data() const
Definition: qstring.h:542
QString stripWhiteSpace() const
Definition: qstring.cpp:13438
StringImpl m_array
Definition: paramhandler.h:65
void ParamHandler::endAttrib ( )
virtual

Definition at line 115 of file paramhandler.cpp.

116 {
118  debug(2,"member attrib=`%s'\n",m_attrib.data());
119 }
StringImpl m_attrib
Definition: paramhandler.h:69
const char * data() const
Definition: qstring.h:542
QString stripWhiteSpace() const
Definition: qstring.cpp:13438
void ParamHandler::endDeclName ( )
virtual

Definition at line 103 of file paramhandler.cpp.

104 {
106  debug(2,"member declName=`%s'\n",m_declName.data());
107 }
const char * data() const
Definition: qstring.h:542
QString stripWhiteSpace() const
Definition: qstring.cpp:13438
StringImpl m_declName
Definition: paramhandler.h:63
void ParamHandler::endDefName ( )
virtual

Definition at line 109 of file paramhandler.cpp.

110 {
112  debug(2,"member defName=`%s'\n",m_defName.data());
113 }
const char * data() const
Definition: qstring.h:542
StringImpl m_defName
Definition: paramhandler.h:64
QString stripWhiteSpace() const
Definition: qstring.cpp:13438
void ParamHandler::endParam ( )
virtual

Definition at line 90 of file paramhandler.cpp.

91 {
93 }
IBaseHandler * m_parent
Definition: paramhandler.h:71
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
void ParamHandler::startBriefDesc ( const QXmlAttributes attrib)
virtual

Definition at line 135 of file paramhandler.cpp.

136 {
137  DocHandler *docHandler = new DocHandler(this);
138  docHandler->startDoc(attrib);
139  m_brief = docHandler;
140 }
DocHandler * m_brief
Definition: paramhandler.h:67
virtual void startDoc(const QXmlAttributes &attrib)
Node representing a documentation block.
Definition: dochandler.h:1315
void ParamHandler::startDefVal ( const QXmlAttributes attrib)
virtual

Definition at line 127 of file paramhandler.cpp.

128 {
129  delete m_linkedTextHandler;
131  m_linkedTextHandler->start("defval");
132  debug(2,"member defVal\n");
133 }
LinkedTextHandler * m_linkedTextHandler
Definition: paramhandler.h:72
virtual void start(const char *endTag)
QList< LinkedTextImpl > m_defVal
Definition: paramhandler.h:66
void ParamHandler::startParam ( const QXmlAttributes attrib)
virtual

Definition at line 84 of file paramhandler.cpp.

85 {
86  m_parent->setDelegate(this);
87  debug(2,"param\n");
88 }
IBaseHandler * m_parent
Definition: paramhandler.h:71
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
void ParamHandler::startType ( const QXmlAttributes attrib)
virtual

Definition at line 95 of file paramhandler.cpp.

96 {
97  delete m_linkedTextHandler;
99  m_linkedTextHandler->start("type");
100  debug(2,"param type\n");
101 }
LinkedTextHandler * m_linkedTextHandler
Definition: paramhandler.h:72
virtual void start(const char *endTag)
QList< LinkedTextImpl > m_type
Definition: paramhandler.h:62
ILinkedTextIterator * ParamHandler::type ( ) const
virtual

Implements IParam.

Definition at line 142 of file paramhandler.cpp.

143 {
144  return new LinkedTextIterator(m_type);
145 }
QList< LinkedTextImpl > m_type
Definition: paramhandler.h:62

Member Data Documentation

StringImpl ParamHandler::m_array
private

Definition at line 65 of file paramhandler.h.

StringImpl ParamHandler::m_attrib
private

Definition at line 69 of file paramhandler.h.

DocHandler* ParamHandler::m_brief
private

Definition at line 67 of file paramhandler.h.

StringImpl ParamHandler::m_declName
private

Definition at line 63 of file paramhandler.h.

StringImpl ParamHandler::m_defName
private

Definition at line 64 of file paramhandler.h.

QList<LinkedTextImpl> ParamHandler::m_defVal
private

Definition at line 66 of file paramhandler.h.

LinkedTextHandler* ParamHandler::m_linkedTextHandler
private

Definition at line 72 of file paramhandler.h.

IBaseHandler* ParamHandler::m_parent
private

Definition at line 71 of file paramhandler.h.

QList<LinkedTextImpl> ParamHandler::m_type
private

Definition at line 62 of file paramhandler.h.


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