51 debug(1,
"Warning: `%s' is an invalid member type\n",s.
data());
90 m_parent(parent), m_brief(0), m_detailed(0), m_linkedTextHandler(0)
92 addEndHandler(
"enumvalue",
this,&EnumValueHandler::endEnumValue);
94 addStartHandler(
"name",
this,&EnumValueHandler::startName);
95 addEndHandler(
"name",
this,&EnumValueHandler::endName);
96 addStartHandler(
"initializer",
this,&EnumValueHandler::startInitializer);
98 addStartHandler(
"briefdescription",
this,&EnumValueHandler::startBriefDesc);
100 addStartHandler(
"detaileddescription",
this,&EnumValueHandler::startDetailedDesc);
102 m_initializer.setAutoDelete(
TRUE);
105 EnumValueHandler::~EnumValueHandler()
109 delete m_linkedTextHandler;
114 m_parent->setDelegate(
this);
117 void EnumValueHandler::endEnumValue()
119 m_parent->setDelegate(0);
127 void EnumValueHandler::endName()
129 m_name = m_curString;
134 delete m_linkedTextHandler;
136 m_linkedTextHandler->start(
"initializer");
139 void EnumValueHandler::startBriefDesc(
const QXmlAttributes& attrib)
143 m_brief = docHandler;
146 void EnumValueHandler::startDetailedDesc(
const QXmlAttributes& attrib)
150 m_detailed = docHandler;
157 : m_brief(0), m_detailed(0), m_inbody(0),
158 m_compound(0), m_section(0), m_parent(parent)
231 debug(2,
"MemberHandler::~MemberHandler() %p\n",
this);
257 debug(2,
"member kind=`%s' id=`%s' prot=`%s' virt=`%s'\n",
278 debug(2,
"member kind=`%s' id=`%s' prot=`%s' virt=`%s'\n",
316 s = attrib.
value(
"line");
318 s = attrib.
value(
"bodystart");
320 s = attrib.
value(
"bodyend");
382 debug(2,
"startType!\n");
390 debug(2,
"startInitializer!\n");
398 debug(2,
"startException!\n");
489 for (;(mr=mli.
current());++mli)
497 for (;(mr=mli.
current());++mli)
505 for (;(mr=mli.
current());++mli)
virtual ILinkedTextIterator * type() const
Read only interface to a string.
virtual void startReimplements(const QXmlAttributes &attrib)
virtual void startTemplateParamList(const QXmlAttributes &attrib)
void memberhandler_exit()
virtual void startType(const QXmlAttributes &attrib)
void initialize(MainHandler *m)
static MemberTypeMap * s_typeMap
void append(const type *d)
void memberhandler_init()
QList< LinkedTextImpl > m_type
virtual IDocRoot * briefDescription() const
virtual void startException(const QXmlAttributes &attrib)
virtual IMemberReferenceIterator * referencedBy() const
QList< MemberReference > m_references
bool m_insideTemplateParamList
virtual void startInitializer(const QXmlAttributes &attrib)
bool m_hasTemplateParamList
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
virtual void startMember(const QXmlAttributes &attrib)
virtual void startInbodyDesc(const QXmlAttributes &attrib)
QList< MemberReference > m_reimplementedBy
QString value(int index) const
ICompound * toICompound() const
QList< ParamHandler > m_params
virtual void start(const char *endTag)
virtual IMemberReferenceIterator * references() const
virtual void endReferences()
QList< MemberHandler > m_enumValues
virtual void startReferences(const QXmlAttributes &attrib)
virtual const IString * typeString() const
static QString toString(const QList< LinkedTextImpl > &list)
virtual void startParam(const QXmlAttributes &attrib)
virtual void endTemplateParamList()
QList< ParamHandler > m_templateParams
virtual void startDetailedDesc(const QXmlAttributes &attrib)
QList< LinkedTextImpl > m_initializer
const char * data() const
IMember::MemberKind map(const QString &s)
virtual IDocRoot * detailedDescription() const
virtual ISection * section() const
virtual void endArgsString()
virtual void startDoc(const QXmlAttributes &attrib)
void setSectionHandler(SectionHandler *s)
virtual void setDelegate(QXmlDefaultHandler *delegate)=0
virtual void startLocation(const QXmlAttributes &attrib)
Node representing a documentation block.
virtual ILinkedTextIterator * exceptions() const
virtual IParamIterator * templateParameters() const
virtual IDocRoot * inbodyDescription() const
The interface to a compound in the object model.
virtual void startBriefDesc(const QXmlAttributes &attrib)
virtual ICompound * compound() const
QString stripWhiteSpace() const
The interface to a section in the object model.
virtual void startEnumValue2(const QXmlAttributes &attrib)
Iterates over a list of ILinkedText fragments.
virtual void endReimplements()
MemberHandler(IBaseHandler *parent)
virtual void startWrite(const QXmlAttributes &attrib)
virtual void startParam(const QXmlAttributes &attrib)
virtual void startName(const QXmlAttributes &attrib)
virtual IMemberIterator * enumValues() const
SectionHandler * m_section
virtual void startDefinition(const QXmlAttributes &attrib)
virtual void startReimplementedBy(const QXmlAttributes &attrib)
int toInt(bool *ok=0, int base=10) const
virtual void endReimplementedBy()
The QXmlAttributes class provides XML attributes.
MemberReference * m_reimplements
QList< MemberReference > m_referencedBy
LinkedTextHandler * m_linkedTextHandler
void initialize(MainHandler *m)
void addStartHandler(const char *key)
void setCompoundHandler(CompoundHandler *c)
virtual void startReferencedBy(const QXmlAttributes &attrib)
virtual IMemberReferenceIterator * reimplementedBy() const
void setAutoDelete(bool enable)
virtual void startRead(const QXmlAttributes &attrib)
QList< LinkedTextImpl > m_exception
virtual void endReferencedBy()
virtual void startArgsString(const QXmlAttributes &attrib)
def parent(G, child, parent_type)
virtual IParamIterator * parameters() const
virtual IMember * member() const
virtual void endDefinition()
virtual ILinkedTextIterator * initializer() const
CompoundHandler * m_compound
void addEndHandler(const char *key)
virtual void startEnumValue(const QXmlAttributes &attrib)