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

#include <memberhandler.h>

Inheritance diagram for MemberHandler:
BaseHandler< MemberHandler > IEnumValue IEnum ISlot IDCOP IFriend IPrototype ISignal IFunction ITypedef IVariable IProperty IDefine

Public Member Functions

virtual void startMember (const QXmlAttributes &attrib)
 
virtual void endMember ()
 
virtual void startParam (const QXmlAttributes &attrib)
 
virtual void startType (const QXmlAttributes &attrib)
 
virtual void startName (const QXmlAttributes &attrib)
 
virtual void endName ()
 
virtual void startRead (const QXmlAttributes &attrib)
 
virtual void endRead ()
 
virtual void startWrite (const QXmlAttributes &attrib)
 
virtual void endWrite ()
 
virtual void startDefinition (const QXmlAttributes &attrib)
 
virtual void endDefinition ()
 
virtual void startArgsString (const QXmlAttributes &attrib)
 
virtual void endArgsString ()
 
virtual void startBriefDesc (const QXmlAttributes &attrib)
 
virtual void startDetailedDesc (const QXmlAttributes &attrib)
 
virtual void startInbodyDesc (const QXmlAttributes &attrib)
 
virtual void startLocation (const QXmlAttributes &attrib)
 
virtual void startReferences (const QXmlAttributes &attrib)
 
virtual void endReferences ()
 
virtual void startReferencedBy (const QXmlAttributes &attrib)
 
virtual void endReferencedBy ()
 
virtual void startReimplements (const QXmlAttributes &attrib)
 
virtual void endReimplements ()
 
virtual void startReimplementedBy (const QXmlAttributes &attrib)
 
virtual void endReimplementedBy ()
 
virtual void startInitializer (const QXmlAttributes &attrib)
 
virtual void startException (const QXmlAttributes &attrib)
 
virtual void startEnumValue (const QXmlAttributes &attrib)
 
virtual void startEnumValue2 (const QXmlAttributes &attrib)
 
virtual void startTemplateParamList (const QXmlAttributes &attrib)
 
virtual void endTemplateParamList ()
 
 MemberHandler (IBaseHandler *parent)
 
virtual ~MemberHandler ()
 
virtual ICompoundcompound () const
 
virtual ISectionsection () const
 
virtual MemberKind kind () const
 
virtual const IStringkindString () const
 
virtual const IStringid () const
 
virtual const IStringprotection () const
 
virtual const IStringvirtualness () const
 
virtual const IStringname () const
 
virtual const IStringreadAccessor () const
 
virtual const IStringwriteAccessor () const
 
virtual const IStringdefinition () const
 
virtual const IStringargsstring () const
 
virtual bool isConst () const
 
virtual bool isVolatile () const
 
virtual bool isStatic () const
 
virtual bool isExplicit () const
 
virtual bool isInline () const
 
virtual bool isMutable () const
 
virtual bool isReadable () const
 
virtual bool isWritable () const
 
virtual ILinkedTextIteratortype () const
 
virtual const IStringtypeString () const
 
virtual IParamIteratorparameters () const
 
virtual IParamIteratortemplateParameters () const
 
virtual IMemberReferenceIteratorreferences () const
 
virtual IMemberReferenceIteratorreferencedBy () const
 
virtual ILinkedTextIteratorinitializer () const
 
virtual ILinkedTextIteratorexceptions () const
 
virtual const IStringbodyFile () const
 
virtual int bodyStart () const
 
virtual int bodyEnd () const
 
virtual const IStringdefinitionFile () const
 
virtual int definitionLine () const
 
virtual IMemberReferencereimplements () const
 
virtual IMemberReferenceIteratorreimplementedBy () const
 
virtual IDocRootbriefDescription () const
 
virtual IDocRootdetailedDescription () const
 
virtual IDocRootinbodyDescription () const
 
virtual IMemberIteratorenumValues () const
 
void initialize (MainHandler *m)
 
void setCompoundHandler (CompoundHandler *c)
 
void setSectionHandler (SectionHandler *s)
 
- Public Member Functions inherited from BaseHandler< MemberHandler >
 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< MemberHandler >
 ElementMapper ()
 
virtual ~ElementMapper ()
 
void addStartHandler (const char *key)
 
void addStartHandler (const char *key, MemberHandler *obj, void(MemberHandler::*handler)(const QXmlAttributes &))
 
void addEndHandler (const char *key)
 
void addEndHandler (const char *key, MemberHandler *obj, void(MemberHandler::*handler)())
 
- Public Member Functions inherited from IBaseHandler
virtual ~IBaseHandler ()
 

Private Attributes

QList< ParamHandlerm_templateParams
 
QList< LinkedTextImplm_type
 
StringImpl m_definition
 
StringImpl m_argsstring
 
StringImpl m_name
 
StringImpl m_read
 
StringImpl m_write
 
MemberReferencem_reimplements
 
QList< MemberReferencem_reimplementedBy
 
QList< ParamHandlerm_params
 
QList< MemberHandlerm_enumValues
 
QList< LinkedTextImplm_initializer
 
QList< LinkedTextImplm_exception
 
DocHandlerm_brief
 
DocHandlerm_detailed
 
DocHandlerm_inbody
 
StringImpl m_defFile
 
int m_defLine
 
StringImpl m_bodyFile
 
int m_bodyStart
 
int m_bodyEnd
 
QList< MemberReferencem_references
 
QList< MemberReferencem_referencedBy
 
MemberKind m_kind
 
StringImpl m_kindString
 
StringImpl m_id
 
StringImpl m_protection
 
bool m_isStatic
 
bool m_isConst
 
bool m_isExplicit
 
bool m_isInline
 
StringImpl m_virtualness
 
bool m_isVolatile
 
bool m_isMutable
 
bool m_isReadable
 
bool m_isWritable
 
CompoundHandlerm_compound
 
SectionHandlerm_section
 
StringImpl m_typeString
 
LinkedTextHandlerm_linkedTextHandler
 
bool m_insideTemplateParamList
 
bool m_hasTemplateParamList
 
IBaseHandlerm_parent
 

Additional Inherited Members

- Public Types inherited from IMember
enum  MemberKind {
  Invalid =0, Define, Property, Variable,
  Typedef, Enum, Function, Signal,
  Prototype, Friend, DCOP, Slot,
  EnumValue, Invalid =0, Define, Property,
  Variable, Typedef, Enum, Function,
  Signal, Prototype, Friend, DCOP,
  Slot, EnumValue
}
 
enum  MemberKind {
  Invalid =0, Define, Property, Variable,
  Typedef, Enum, Function, Signal,
  Prototype, Friend, DCOP, Slot,
  EnumValue, Invalid =0, Define, Property,
  Variable, Typedef, Enum, Function,
  Signal, Prototype, Friend, DCOP,
  Slot, EnumValue
}
 
- Public Types inherited from BaseHandler< MemberHandler >
typedef ElementMapper< MemberHandler >::StartElementHandlerT StartElementHandlerT
 
typedef ElementMapper< MemberHandler >::EndElementHandlerT EndElementHandlerT
 
- Public Types inherited from ElementMapper< MemberHandler >
typedef StartElementHandler StartElementHandlerT
 
typedef EndElementHandler EndElementHandlerT
 
- Static Public Attributes inherited from LocatorContainer
static QXmlLocators_theLocator =0
 
- Protected Attributes inherited from BaseHandler< MemberHandler >
QString m_curString
 
QString m_skipUntil
 
int m_skipCount
 
QXmlDefaultHandlerm_delegateHandler
 
IFallBackHandlerm_fallBackHandler
 
- Protected Attributes inherited from ElementMapper< MemberHandler >
QDict< StartElementHandlerTm_startHandlers
 
QDict< EndElementHandlerTm_endHandlers
 

Detailed Description

Definition at line 64 of file memberhandler.h.

Constructor & Destructor Documentation

MemberHandler::MemberHandler ( IBaseHandler parent)

Definition at line 156 of file memberhandler.cpp.

157  : m_brief(0), m_detailed(0), m_inbody(0),
158  m_compound(0), m_section(0), m_parent(parent)
159 {
160  //printf("MemberHandler::MemberHandler() %p\n",this);
161  addEndHandler("memberdef",this,&MemberHandler::endMember);
162 
163  addStartHandler("templateparamlist",this,&MemberHandler::startTemplateParamList);
164  addEndHandler("templateparamlist",this,&MemberHandler::endTemplateParamList);
165 
167 
169  addEndHandler("definition",this,&MemberHandler::endDefinition);
170 
172  addEndHandler("argsstring",this,&MemberHandler::endArgsString);
173 
176 
179 
181  addEndHandler("write",this,&MemberHandler::endWrite);
182 
184  addEndHandler("reimplements",this,&MemberHandler::endReimplements);
185 
186  addStartHandler("reimplementedby",this,&MemberHandler::startReimplementedBy);
187  addEndHandler("reimplementedby",this,&MemberHandler::endReimplementedBy);
188 
190 
192  addEndHandler("enumvalue",this,&MemberHandler::endMember);
193 
196 
197  addStartHandler("briefdescription",this,&MemberHandler::startBriefDesc);
198 
199  addStartHandler("detaileddescription",this,&MemberHandler::startDetailedDesc);
200 
201  addStartHandler("inbodydescription",this,&MemberHandler::startInbodyDesc);
202 
204  addEndHandler("location");
205 
207  addEndHandler("references",this,&MemberHandler::endReferences);
208 
210  addEndHandler("referencedby",this,&MemberHandler::endReferencedBy);
211 
218  m_reimplements = 0;
222  m_defLine=0;
223  m_bodyStart=0;
224  m_bodyEnd=0;
227 }
virtual void endRead()
virtual void startReimplements(const QXmlAttributes &attrib)
virtual void startTemplateParamList(const QXmlAttributes &attrib)
virtual void startType(const QXmlAttributes &attrib)
IBaseHandler * m_parent
QList< LinkedTextImpl > m_type
virtual void endName()
virtual void startException(const QXmlAttributes &attrib)
QList< MemberReference > m_references
const bool FALSE
Definition: qglobal.h:370
bool m_insideTemplateParamList
virtual void startInitializer(const QXmlAttributes &attrib)
bool m_hasTemplateParamList
virtual void startInbodyDesc(const QXmlAttributes &attrib)
QList< MemberReference > m_reimplementedBy
QList< ParamHandler > m_params
virtual void endReferences()
QList< MemberHandler > m_enumValues
virtual void startReferences(const QXmlAttributes &attrib)
virtual void startParam(const QXmlAttributes &attrib)
virtual void endTemplateParamList()
virtual void startDetailedDesc(const QXmlAttributes &attrib)
QList< LinkedTextImpl > m_initializer
virtual void endMember()
virtual void endWrite()
virtual void endArgsString()
virtual void startLocation(const QXmlAttributes &attrib)
DocHandler * m_inbody
DocHandler * m_brief
virtual void startBriefDesc(const QXmlAttributes &attrib)
virtual void startEnumValue2(const QXmlAttributes &attrib)
virtual void endReimplements()
virtual void startWrite(const QXmlAttributes &attrib)
virtual void startName(const QXmlAttributes &attrib)
virtual void startDefinition(const QXmlAttributes &attrib)
SectionHandler * m_section
virtual void startReimplementedBy(const QXmlAttributes &attrib)
virtual void endReimplementedBy()
MemberReference * m_reimplements
QList< MemberReference > m_referencedBy
LinkedTextHandler * m_linkedTextHandler
void addStartHandler(const char *key)
Definition: basehandler.h:91
virtual void startReferencedBy(const QXmlAttributes &attrib)
void setAutoDelete(bool enable)
Definition: qlist.h:99
virtual void startRead(const QXmlAttributes &attrib)
QList< LinkedTextImpl > m_exception
virtual void endReferencedBy()
virtual void startArgsString(const QXmlAttributes &attrib)
const bool TRUE
Definition: qglobal.h:371
DocHandler * m_detailed
virtual void endDefinition()
CompoundHandler * m_compound
void addEndHandler(const char *key)
Definition: basehandler.h:101
MemberHandler::~MemberHandler ( )
virtual

Definition at line 229 of file memberhandler.cpp.

230 {
231  debug(2,"MemberHandler::~MemberHandler() %p\n",this);
232  delete m_brief;
233  delete m_detailed;
234  delete m_inbody;
235  delete m_linkedTextHandler;
236  delete m_reimplements;
237 }
DocHandler * m_inbody
DocHandler * m_brief
MemberReference * m_reimplements
LinkedTextHandler * m_linkedTextHandler
DocHandler * m_detailed

Member Function Documentation

virtual const IString* MemberHandler::argsstring ( ) const
inlinevirtual

Implements IMember.

Definition at line 136 of file memberhandler.h.

137  { return &m_argsstring; }
StringImpl m_argsstring
virtual int MemberHandler::bodyEnd ( ) const
inlinevirtual

Implements IMember.

Definition at line 166 of file memberhandler.h.

167  { return m_bodyEnd; }
virtual const IString* MemberHandler::bodyFile ( ) const
inlinevirtual

Implements IMember.

Definition at line 162 of file memberhandler.h.

163  { return &m_bodyFile; }
StringImpl m_bodyFile
virtual int MemberHandler::bodyStart ( ) const
inlinevirtual

Implements IMember.

Definition at line 164 of file memberhandler.h.

165  { return m_bodyStart; }
IDocRoot * MemberHandler::briefDescription ( ) const
virtual

Implements IMember.

Definition at line 586 of file memberhandler.cpp.

587 {
588  return m_brief;
589 }
DocHandler * m_brief
ICompound * MemberHandler::compound ( ) const
virtual

Implements IMember.

Definition at line 518 of file memberhandler.cpp.

519 {
520  m_compound->addref();
521  return m_compound->toICompound();
522 }
virtual void addref()
ICompound * toICompound() const
CompoundHandler * m_compound
virtual const IString* MemberHandler::definition ( ) const
inlinevirtual

Implements IMember.

Definition at line 134 of file memberhandler.h.

135  { return &m_definition; }
StringImpl m_definition
virtual const IString* MemberHandler::definitionFile ( ) const
inlinevirtual

Implements IMember.

Definition at line 168 of file memberhandler.h.

169  { return &m_defFile; }
StringImpl m_defFile
virtual int MemberHandler::definitionLine ( ) const
inlinevirtual

Implements IMember.

Definition at line 170 of file memberhandler.h.

171  { return m_defLine; }
IDocRoot * MemberHandler::detailedDescription ( ) const
virtual

Implements IMember.

Definition at line 591 of file memberhandler.cpp.

592 {
593  return m_detailed;
594 }
DocHandler * m_detailed
void MemberHandler::endArgsString ( )
virtual

Definition at line 453 of file memberhandler.cpp.

454 {
456  debug(2,"arggstring=%s\n",m_argsstring.data());
457 }
const char * data() const
Definition: qstring.h:542
QString stripWhiteSpace() const
Definition: qstring.cpp:13438
StringImpl m_argsstring
void MemberHandler::endDefinition ( )
virtual

Definition at line 442 of file memberhandler.cpp.

443 {
445  debug(2,"definition=%s\n",m_definition.data());
446 }
StringImpl m_definition
const char * data() const
Definition: qstring.h:542
QString stripWhiteSpace() const
Definition: qstring.cpp:13438
void MemberHandler::endMember ( )
virtual

Definition at line 375 of file memberhandler.cpp.

376 {
377  m_parent->setDelegate(0);
378 }
IBaseHandler * m_parent
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
void MemberHandler::endName ( )
virtual

Definition at line 409 of file memberhandler.cpp.

410 {
412  debug(2,"member name=`%s'\n",m_name.data());
413 }
const char * data() const
Definition: qstring.h:542
QString stripWhiteSpace() const
Definition: qstring.cpp:13438
StringImpl m_name
void MemberHandler::endRead ( )
virtual

Definition at line 420 of file memberhandler.cpp.

421 {
423  debug(2,"member read=`%s'\n",m_read.data());
424 }
const char * data() const
Definition: qstring.h:542
QString stripWhiteSpace() const
Definition: qstring.cpp:13438
StringImpl m_read
void MemberHandler::endReferencedBy ( )
virtual

Definition at line 345 of file memberhandler.cpp.

346 {
348 }
type * getLast() const
Definition: qlist.h:96
StringImpl m_name
Definition: memberhandler.h:49
QList< MemberReference > m_referencedBy
void MemberHandler::endReferences ( )
virtual

Definition at line 332 of file memberhandler.cpp.

333 {
335 }
QList< MemberReference > m_references
type * getLast() const
Definition: qlist.h:96
StringImpl m_name
Definition: memberhandler.h:49
void MemberHandler::endReimplementedBy ( )
virtual

Definition at line 370 of file memberhandler.cpp.

371 {
373 }
QList< MemberReference > m_reimplementedBy
type * getLast() const
Definition: qlist.h:96
StringImpl m_name
Definition: memberhandler.h:49
void MemberHandler::endReimplements ( )
virtual

Definition at line 357 of file memberhandler.cpp.

358 {
360 }
StringImpl m_name
Definition: memberhandler.h:49
MemberReference * m_reimplements
void MemberHandler::endTemplateParamList ( )
virtual

Definition at line 479 of file memberhandler.cpp.

480 {
482 }
const bool FALSE
Definition: qglobal.h:370
bool m_insideTemplateParamList
void MemberHandler::endWrite ( )
virtual

Definition at line 431 of file memberhandler.cpp.

432 {
434  debug(2,"member write=`%s'\n",m_write.data());
435 }
StringImpl m_write
const char * data() const
Definition: qstring.h:542
QString stripWhiteSpace() const
Definition: qstring.cpp:13438
IMemberIterator * MemberHandler::enumValues ( ) const
virtual

Implements IEnum.

Definition at line 534 of file memberhandler.cpp.

535 {
536  return new MemberIterator(m_enumValues);
537 }
QList< MemberHandler > m_enumValues
ILinkedTextIterator * MemberHandler::exceptions ( ) const
virtual

Implements IMember.

Definition at line 576 of file memberhandler.cpp.

577 {
578  return new LinkedTextIterator(m_exception);
579 }
QList< LinkedTextImpl > m_exception
virtual const IString* MemberHandler::id ( ) const
inlinevirtual

Implements IMember.

Definition at line 122 of file memberhandler.h.

123  { return &m_id; }
StringImpl m_id
IDocRoot * MemberHandler::inbodyDescription ( ) const
virtual

Implements IMember.

Definition at line 596 of file memberhandler.cpp.

597 {
598  return m_inbody;
599 }
DocHandler * m_inbody
void MemberHandler::initialize ( MainHandler m)

Definition at line 484 of file memberhandler.cpp.

485 {
486  {
488  MemberReference *mr;
489  for (;(mr=mli.current());++mli)
490  {
491  mr->initialize(mh);
492  }
493  }
494  {
496  MemberReference *mr;
497  for (;(mr=mli.current());++mli)
498  {
499  mr->initialize(mh);
500  }
501  }
502  {
504  MemberReference *mr;
505  for (;(mr=mli.current());++mli)
506  {
507  mr->initialize(mh);
508  }
509  }
511 }
void initialize(MainHandler *m)
QList< MemberReference > m_references
QList< MemberReference > m_reimplementedBy
MemberReference * m_reimplements
QList< MemberReference > m_referencedBy
ILinkedTextIterator * MemberHandler::initializer ( ) const
virtual

Implements IMember.

Definition at line 571 of file memberhandler.cpp.

572 {
573  return new LinkedTextIterator(m_initializer);
574 }
QList< LinkedTextImpl > m_initializer
virtual bool MemberHandler::isConst ( ) const
inlinevirtual

Implements IMember.

Definition at line 138 of file memberhandler.h.

139  { return m_isConst; }
virtual bool MemberHandler::isExplicit ( ) const
inlinevirtual

Implements IMember.

Definition at line 144 of file memberhandler.h.

145  { return m_isExplicit; }
virtual bool MemberHandler::isInline ( ) const
inlinevirtual

Implements IMember.

Definition at line 146 of file memberhandler.h.

147  { return m_isInline; }
virtual bool MemberHandler::isMutable ( ) const
inlinevirtual

Implements IMember.

Definition at line 148 of file memberhandler.h.

149  { return m_isMutable; }
virtual bool MemberHandler::isReadable ( ) const
inlinevirtual

Implements IMember.

Definition at line 150 of file memberhandler.h.

151  { return m_isReadable; }
virtual bool MemberHandler::isStatic ( ) const
inlinevirtual

Implements IMember.

Definition at line 142 of file memberhandler.h.

143  { return m_isStatic; }
virtual bool MemberHandler::isVolatile ( ) const
inlinevirtual

Implements IMember.

Definition at line 140 of file memberhandler.h.

141  { return m_isVolatile; }
virtual bool MemberHandler::isWritable ( ) const
inlinevirtual

Implements IMember.

Definition at line 152 of file memberhandler.h.

153  { return m_isWritable; }
virtual MemberKind MemberHandler::kind ( ) const
inlinevirtual

Implements IMember.

Definition at line 118 of file memberhandler.h.

119  { return m_kind; }
MemberKind m_kind
virtual const IString* MemberHandler::kindString ( ) const
inlinevirtual

Implements IMember.

Definition at line 120 of file memberhandler.h.

121  { return &m_kindString; }
StringImpl m_kindString
virtual const IString* MemberHandler::name ( ) const
inlinevirtual

Implements IEnumValue.

Definition at line 128 of file memberhandler.h.

129  { return &m_name; }
StringImpl m_name
IParamIterator * MemberHandler::parameters ( ) const
virtual

Implements IMember.

Definition at line 551 of file memberhandler.cpp.

552 {
553  return new ParamIterator(m_params);
554 }
QList< ParamHandler > m_params
virtual const IString* MemberHandler::protection ( ) const
inlinevirtual

Implements IMember.

Definition at line 124 of file memberhandler.h.

125  { return &m_protection; }
StringImpl m_protection
virtual const IString* MemberHandler::readAccessor ( ) const
inlinevirtual

Implements IMember.

Definition at line 130 of file memberhandler.h.

131  { return &m_read; }
StringImpl m_read
IMemberReferenceIterator * MemberHandler::referencedBy ( ) const
virtual

Implements IMember.

Definition at line 566 of file memberhandler.cpp.

567 {
569 }
QList< MemberReference > m_referencedBy
IMemberReferenceIterator * MemberHandler::references ( ) const
virtual

Implements IMember.

Definition at line 561 of file memberhandler.cpp.

562 {
564 }
QList< MemberReference > m_references
IMemberReferenceIterator * MemberHandler::reimplementedBy ( ) const
virtual

Implements IMember.

Definition at line 581 of file memberhandler.cpp.

582 {
584 }
QList< MemberReference > m_reimplementedBy
virtual IMemberReference* MemberHandler::reimplements ( ) const
inlinevirtual

Implements IMember.

Definition at line 172 of file memberhandler.h.

173  { return m_reimplements; }
MemberReference * m_reimplements
ISection * MemberHandler::section ( ) const
virtual

Implements IMember.

Definition at line 529 of file memberhandler.cpp.

530 {
531  return m_section;
532 }
SectionHandler * m_section
void MemberHandler::setCompoundHandler ( CompoundHandler c)

Definition at line 513 of file memberhandler.cpp.

514 {
515  m_compound = c;
516 }
CompoundHandler * m_compound
void MemberHandler::setSectionHandler ( SectionHandler s)

Definition at line 524 of file memberhandler.cpp.

525 {
526  m_section = c;
527 }
SectionHandler * m_section
void MemberHandler::startArgsString ( const QXmlAttributes attrib)
virtual

Definition at line 448 of file memberhandler.cpp.

449 {
450  m_curString="";
451 }
void MemberHandler::startBriefDesc ( const QXmlAttributes attrib)
virtual

Definition at line 290 of file memberhandler.cpp.

291 {
292  DocHandler *docHandler = new DocHandler(this);
293  docHandler->startDoc(attrib);
294  m_brief = docHandler;
295 }
virtual void startDoc(const QXmlAttributes &attrib)
Node representing a documentation block.
Definition: dochandler.h:1315
DocHandler * m_brief
void MemberHandler::startDefinition ( const QXmlAttributes attrib)
virtual

Definition at line 437 of file memberhandler.cpp.

438 {
439  m_curString="";
440 }
void MemberHandler::startDetailedDesc ( const QXmlAttributes attrib)
virtual

Definition at line 297 of file memberhandler.cpp.

298 {
299  DocHandler *docHandler = new DocHandler(this);
300  docHandler->startDoc(attrib);
301  m_detailed = docHandler;
302 }
virtual void startDoc(const QXmlAttributes &attrib)
Node representing a documentation block.
Definition: dochandler.h:1315
DocHandler * m_detailed
void MemberHandler::startEnumValue ( const QXmlAttributes attrib)
virtual

Definition at line 261 of file memberhandler.cpp.

262 {
263  m_parent->setDelegate(this);
264  m_kindString = "enumvalue";
265  //printf("startEnumValue kindString=`%s'\n",m_kindString.data());
267  m_id = attrib.value("id");
268  m_protection = attrib.value("prot");
269  m_isStatic = FALSE;
270  m_isConst = FALSE;
272  m_isInline = FALSE;
273  m_virtualness = "non-virtual";
275  m_isMutable = FALSE;
278  debug(2,"member kind=`%s' id=`%s' prot=`%s' virt=`%s'\n",
280 }
IBaseHandler * m_parent
static MemberTypeMap * s_typeMap
StringImpl m_virtualness
const bool FALSE
Definition: qglobal.h:370
StringImpl m_protection
QString value(int index) const
Definition: qxml.cpp:664
MemberKind m_kind
const char * data() const
Definition: qstring.h:542
IMember::MemberKind map(const QString &s)
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
StringImpl m_kindString
StringImpl m_id
void MemberHandler::startEnumValue2 ( const QXmlAttributes attrib)
virtual

Definition at line 282 of file memberhandler.cpp.

283 {
284  MemberHandler *mh = new MemberHandler(this);
285  mh->startEnumValue(attrib);
286  m_enumValues.append(mh);
287 }
void append(const type *d)
Definition: qlist.h:73
QList< MemberHandler > m_enumValues
MemberHandler(IBaseHandler *parent)
virtual void startEnumValue(const QXmlAttributes &attrib)
void MemberHandler::startException ( const QXmlAttributes attrib)
virtual

Definition at line 396 of file memberhandler.cpp.

397 {
398  debug(2,"startException!\n");
399  delete m_linkedTextHandler;
401  m_linkedTextHandler->start("exceptions");
402 }
virtual void start(const char *endTag)
LinkedTextHandler * m_linkedTextHandler
QList< LinkedTextImpl > m_exception
void MemberHandler::startInbodyDesc ( const QXmlAttributes attrib)
virtual

Definition at line 304 of file memberhandler.cpp.

305 {
306  DocHandler *docHandler = new DocHandler(this);
307  docHandler->startDoc(attrib);
308  m_inbody = docHandler;
309 }
virtual void startDoc(const QXmlAttributes &attrib)
DocHandler * m_inbody
Node representing a documentation block.
Definition: dochandler.h:1315
void MemberHandler::startInitializer ( const QXmlAttributes attrib)
virtual

Definition at line 388 of file memberhandler.cpp.

389 {
390  debug(2,"startInitializer!\n");
391  delete m_linkedTextHandler;
393  m_linkedTextHandler->start("initializer");
394 }
virtual void start(const char *endTag)
QList< LinkedTextImpl > m_initializer
LinkedTextHandler * m_linkedTextHandler
void MemberHandler::startLocation ( const QXmlAttributes attrib)
virtual

Definition at line 311 of file memberhandler.cpp.

312 {
313  m_defFile = attrib.value("file");
314  m_bodyFile = attrib.value("bodyfile");
315  QString s;
316  s = attrib.value("line");
317  if (!s.isEmpty()) m_defLine=s.toInt();
318  s = attrib.value("bodystart");
319  if (!s.isEmpty()) m_bodyStart=s.toInt();
320  s = attrib.value("bodyend");
321  if (!s.isEmpty()) m_bodyEnd=s.toInt();
322 }
bool isEmpty() const
Definition: qstring.h:682
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
int toInt(bool *ok=0, int base=10) const
Definition: qstring.cpp:14045
StringImpl m_defFile
static QCString * s
Definition: config.cpp:1042
StringImpl m_bodyFile
void MemberHandler::startMember ( const QXmlAttributes attrib)
virtual

Definition at line 239 of file memberhandler.cpp.

240 {
241  m_parent->setDelegate(this);
242  m_kindString = attrib.value("kind");
243  //printf("startMember kindString=`%s'\n",m_kindString.data());
245  m_id = attrib.value("id");
246  m_protection = attrib.value("prot");
247  m_isStatic = attrib.value("static")=="yes";
248  m_isConst = attrib.value("const")=="yes";
249  m_isExplicit = attrib.value("explicit")=="yes";
250  m_isInline = attrib.value("inline")=="yes";
251  m_virtualness = attrib.value("virt");
252  m_isVolatile = attrib.value("volatile")=="yes";
253  m_isMutable = attrib.value("mutable")=="yes";
254  m_isReadable = attrib.value("readable")=="yes";
255  m_isWritable = attrib.value("writable")=="yes";
256 
257  debug(2,"member kind=`%s' id=`%s' prot=`%s' virt=`%s'\n",
259 }
IBaseHandler * m_parent
static MemberTypeMap * s_typeMap
StringImpl m_virtualness
StringImpl m_protection
QString value(int index) const
Definition: qxml.cpp:664
MemberKind m_kind
const char * data() const
Definition: qstring.h:542
IMember::MemberKind map(const QString &s)
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
StringImpl m_kindString
StringImpl m_id
void MemberHandler::startName ( const QXmlAttributes attrib)
virtual

Definition at line 404 of file memberhandler.cpp.

405 {
406  m_curString="";
407 }
void MemberHandler::startParam ( const QXmlAttributes attrib)
virtual

Definition at line 459 of file memberhandler.cpp.

460 {
461  ParamHandler *paramHandler = new ParamHandler(this);
462  paramHandler->startParam(attrib);
464  {
465  m_templateParams.append(paramHandler);
466  }
467  else
468  {
469  m_params.append(paramHandler);
470  }
471 }
void append(const type *d)
Definition: qlist.h:73
bool m_insideTemplateParamList
QList< ParamHandler > m_params
QList< ParamHandler > m_templateParams
virtual void startParam(const QXmlAttributes &attrib)
void MemberHandler::startRead ( const QXmlAttributes attrib)
virtual

Definition at line 415 of file memberhandler.cpp.

416 {
417  m_curString="";
418 }
void MemberHandler::startReferencedBy ( const QXmlAttributes attrib)
virtual

Definition at line 337 of file memberhandler.cpp.

338 {
340  mr->m_memId = attrib.value("refid");
342  m_curString="";
343 }
void append(const type *d)
Definition: qlist.h:73
QString value(int index) const
Definition: qxml.cpp:664
QList< MemberReference > m_referencedBy
void MemberHandler::startReferences ( const QXmlAttributes attrib)
virtual

Definition at line 324 of file memberhandler.cpp.

325 {
327  mr->m_memId = attrib.value("refid");
328  m_references.append(mr);
329  m_curString="";
330 }
void append(const type *d)
Definition: qlist.h:73
QList< MemberReference > m_references
QString value(int index) const
Definition: qxml.cpp:664
void MemberHandler::startReimplementedBy ( const QXmlAttributes attrib)
virtual

Definition at line 362 of file memberhandler.cpp.

363 {
365  mr->m_memId = attrib.value("refid");
367  m_curString="";
368 }
void append(const type *d)
Definition: qlist.h:73
QList< MemberReference > m_reimplementedBy
QString value(int index) const
Definition: qxml.cpp:664
void MemberHandler::startReimplements ( const QXmlAttributes attrib)
virtual

Definition at line 350 of file memberhandler.cpp.

351 {
353  m_reimplements->m_memId = attrib.value("refid");
354  m_curString="";
355 }
QString value(int index) const
Definition: qxml.cpp:664
MemberReference * m_reimplements
void MemberHandler::startTemplateParamList ( const QXmlAttributes attrib)
virtual

Definition at line 473 of file memberhandler.cpp.

474 {
477 }
bool m_insideTemplateParamList
bool m_hasTemplateParamList
const bool TRUE
Definition: qglobal.h:371
void MemberHandler::startType ( const QXmlAttributes attrib)
virtual

Definition at line 380 of file memberhandler.cpp.

381 {
382  debug(2,"startType!\n");
383  delete m_linkedTextHandler;
385  m_linkedTextHandler->start("type");
386 }
QList< LinkedTextImpl > m_type
virtual void start(const char *endTag)
LinkedTextHandler * m_linkedTextHandler
void MemberHandler::startWrite ( const QXmlAttributes attrib)
virtual

Definition at line 426 of file memberhandler.cpp.

427 {
428  m_curString="";
429 }
IParamIterator * MemberHandler::templateParameters ( ) const
virtual

Implements IMember.

Definition at line 556 of file memberhandler.cpp.

557 {
559 }
bool m_hasTemplateParamList
QList< ParamHandler > m_templateParams
ILinkedTextIterator * MemberHandler::type ( ) const
virtual

Implements IMember.

Definition at line 539 of file memberhandler.cpp.

540 {
541  return new LinkedTextIterator(m_type);
542 }
QList< LinkedTextImpl > m_type
const IString * MemberHandler::typeString ( ) const
virtual

Implements IMember.

Definition at line 544 of file memberhandler.cpp.

545 {
546  MemberHandler *that = (MemberHandler *)this;
548  return &m_typeString;
549 }
QList< LinkedTextImpl > m_type
StringImpl m_typeString
static QString toString(const QList< LinkedTextImpl > &list)
virtual const IString* MemberHandler::virtualness ( ) const
inlinevirtual

Implements IMember.

Definition at line 126 of file memberhandler.h.

127  { return &m_virtualness; }
StringImpl m_virtualness
virtual const IString* MemberHandler::writeAccessor ( ) const
inlinevirtual

Implements IMember.

Definition at line 132 of file memberhandler.h.

133  { return &m_write; }
StringImpl m_write

Member Data Documentation

StringImpl MemberHandler::m_argsstring
private

Definition at line 192 of file memberhandler.h.

int MemberHandler::m_bodyEnd
private

Definition at line 210 of file memberhandler.h.

StringImpl MemberHandler::m_bodyFile
private

Definition at line 208 of file memberhandler.h.

int MemberHandler::m_bodyStart
private

Definition at line 209 of file memberhandler.h.

DocHandler* MemberHandler::m_brief
private

Definition at line 202 of file memberhandler.h.

CompoundHandler* MemberHandler::m_compound
private

Definition at line 230 of file memberhandler.h.

StringImpl MemberHandler::m_defFile
private

Definition at line 206 of file memberhandler.h.

StringImpl MemberHandler::m_definition
private

Definition at line 191 of file memberhandler.h.

int MemberHandler::m_defLine
private

Definition at line 207 of file memberhandler.h.

DocHandler* MemberHandler::m_detailed
private

Definition at line 203 of file memberhandler.h.

QList<MemberHandler> MemberHandler::m_enumValues
private

Definition at line 199 of file memberhandler.h.

QList<LinkedTextImpl> MemberHandler::m_exception
private

Definition at line 201 of file memberhandler.h.

bool MemberHandler::m_hasTemplateParamList
private

Definition at line 235 of file memberhandler.h.

StringImpl MemberHandler::m_id
private

Definition at line 218 of file memberhandler.h.

DocHandler* MemberHandler::m_inbody
private

Definition at line 204 of file memberhandler.h.

QList<LinkedTextImpl> MemberHandler::m_initializer
private

Definition at line 200 of file memberhandler.h.

bool MemberHandler::m_insideTemplateParamList
private

Definition at line 234 of file memberhandler.h.

bool MemberHandler::m_isConst
private

Definition at line 221 of file memberhandler.h.

bool MemberHandler::m_isExplicit
private

Definition at line 222 of file memberhandler.h.

bool MemberHandler::m_isInline
private

Definition at line 223 of file memberhandler.h.

bool MemberHandler::m_isMutable
private

Definition at line 226 of file memberhandler.h.

bool MemberHandler::m_isReadable
private

Definition at line 227 of file memberhandler.h.

bool MemberHandler::m_isStatic
private

Definition at line 220 of file memberhandler.h.

bool MemberHandler::m_isVolatile
private

Definition at line 225 of file memberhandler.h.

bool MemberHandler::m_isWritable
private

Definition at line 228 of file memberhandler.h.

MemberKind MemberHandler::m_kind
private

Definition at line 216 of file memberhandler.h.

StringImpl MemberHandler::m_kindString
private

Definition at line 217 of file memberhandler.h.

LinkedTextHandler* MemberHandler::m_linkedTextHandler
private

Definition at line 233 of file memberhandler.h.

StringImpl MemberHandler::m_name
private

Definition at line 193 of file memberhandler.h.

QList<ParamHandler> MemberHandler::m_params
private

Definition at line 198 of file memberhandler.h.

IBaseHandler* MemberHandler::m_parent
private

Definition at line 236 of file memberhandler.h.

StringImpl MemberHandler::m_protection
private

Definition at line 219 of file memberhandler.h.

StringImpl MemberHandler::m_read
private

Definition at line 194 of file memberhandler.h.

QList<MemberReference> MemberHandler::m_referencedBy
private

Definition at line 212 of file memberhandler.h.

QList<MemberReference> MemberHandler::m_references
private

Definition at line 211 of file memberhandler.h.

QList<MemberReference> MemberHandler::m_reimplementedBy
private

Definition at line 197 of file memberhandler.h.

MemberReference* MemberHandler::m_reimplements
private

Definition at line 196 of file memberhandler.h.

SectionHandler* MemberHandler::m_section
private

Definition at line 231 of file memberhandler.h.

QList<ParamHandler> MemberHandler::m_templateParams
private

Definition at line 189 of file memberhandler.h.

QList<LinkedTextImpl> MemberHandler::m_type
private

Definition at line 190 of file memberhandler.h.

StringImpl MemberHandler::m_typeString
private

Definition at line 232 of file memberhandler.h.

StringImpl MemberHandler::m_virtualness
private

Definition at line 224 of file memberhandler.h.

StringImpl MemberHandler::m_write
private

Definition at line 195 of file memberhandler.h.


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