diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-01-22 17:56:24 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-01-22 17:56:24 (GMT) |
commit | 0df9adf5f52c9d36bb430da927684c4353b00396 (patch) | |
tree | d15a4da33ccd88d9f7ebd50a6090a12c90ccbae4 /addon/doxmlparser/src/memberhandler.h | |
parent | a66e1ada3c7467e267ff39262178fa4577f0b6ab (diff) | |
download | Doxygen-0df9adf5f52c9d36bb430da927684c4353b00396.zip Doxygen-0df9adf5f52c9d36bb430da927684c4353b00396.tar.gz Doxygen-0df9adf5f52c9d36bb430da927684c4353b00396.tar.bz2 |
Doxygen-1.2.13-20020122
Diffstat (limited to 'addon/doxmlparser/src/memberhandler.h')
-rw-r--r-- | addon/doxmlparser/src/memberhandler.h | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/addon/doxmlparser/src/memberhandler.h b/addon/doxmlparser/src/memberhandler.h index b599e2f..3232a4c 100644 --- a/addon/doxmlparser/src/memberhandler.h +++ b/addon/doxmlparser/src/memberhandler.h @@ -3,7 +3,7 @@ * $Id$ * * - * Copyright (C) 1997-2001 by Dimitri van Heesch. + * Copyright (C) 1997-2002 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby @@ -28,6 +28,8 @@ #include "dochandler.h" class MainHandler; +class CompoundHandler; +class SectionHandler; struct MemberReference : public IMemberReference { @@ -48,13 +50,6 @@ class MemberReferenceIterator : public BaseIterator<IMemberReferenceIterator,IMe BaseIterator<IMemberReferenceIterator,IMemberReference,MemberReference>(list) {} }; -class MemberIterator : public BaseIterator<IMemberIterator,IMember,IMember> -{ - public: - MemberIterator(const QList<IMember> &list) : - BaseIterator<IMemberIterator,IMember,IMember>(list) {} -}; - class EnumValueHandler : public IEnumValue, public BaseHandler<EnumValueHandler> { public: @@ -116,8 +111,12 @@ class MemberHandler : public IMember, public BaseHandler<MemberHandler> virtual ~MemberHandler(); // IMember implementation - virtual QString kind() const + virtual ICompound *compound() const; + virtual ISection *section() const; + virtual MemberKind kind() const { return m_kind; } + virtual QString kindString() const + { return m_kindString; } virtual QString id() const { return m_id; } virtual QString protection() const @@ -132,6 +131,8 @@ class MemberHandler : public IMember, public BaseHandler<MemberHandler> { return m_isVolatile; } virtual ILinkedTextIterator *type() const { return new LinkedTextIterator(m_type); } + virtual QString typeString() const + { return LinkedTextHandler::toString(m_type); } virtual IParamIterator *params() const { return new ParamIterator(m_params); } virtual IMemberReferenceIterator *references() const @@ -162,10 +163,15 @@ class MemberHandler : public IMember, public BaseHandler<MemberHandler> { return m_detailed; } void initialize(MainHandler *m); + void setCompoundHandler(CompoundHandler *c); + void setSectionHandler(SectionHandler *s); private: IBaseHandler *m_parent; - QString m_kind; + CompoundHandler *m_compound; + SectionHandler *m_section; + MemberKind m_kind; + QString m_kindString; QString m_id; QString m_protection; QString m_virtualness; @@ -190,4 +196,14 @@ class MemberHandler : public IMember, public BaseHandler<MemberHandler> QList<EnumValueHandler> m_enumValues; }; +class MemberIterator : public BaseIterator<IMemberIterator,IMember,MemberHandler> +{ + public: + MemberIterator(const QList<MemberHandler> &list) : + BaseIterator<IMemberIterator,IMember,MemberHandler>(list) {} +}; + +void memberhandler_init(); +void memberhandler_exit(); + #endif |