diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-10-30 20:57:53 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-10-30 20:57:53 (GMT) |
commit | c6d6555a949e86be5c859311eb4db5dcc092c258 (patch) | |
tree | dd06bd100b0bd88b6ee40c8464efac800a749c32 /addon/doxmlparser/include | |
parent | 7c34dd2b1594925d0a012e9ba290bf9c80574db5 (diff) | |
download | Doxygen-c6d6555a949e86be5c859311eb4db5dcc092c258.zip Doxygen-c6d6555a949e86be5c859311eb4db5dcc092c258.tar.gz Doxygen-c6d6555a949e86be5c859311eb4db5dcc092c258.tar.bz2 |
Release-1.2.18-20021030
Diffstat (limited to 'addon/doxmlparser/include')
-rw-r--r-- | addon/doxmlparser/include/doxmlintf.h | 128 |
1 files changed, 105 insertions, 23 deletions
diff --git a/addon/doxmlparser/include/doxmlintf.h b/addon/doxmlparser/include/doxmlintf.h index 55eb946..7ab2c79 100644 --- a/addon/doxmlparser/include/doxmlintf.h +++ b/addon/doxmlparser/include/doxmlintf.h @@ -16,7 +16,16 @@ #ifndef _DOXMLINTF_H #define _DOXMLINTF_H -#include <qstring.h> +/*! \file + * \brief The interface to the object model provided by the XML parser + * library. + * + * To start using this library one calls createObjectModel and then + * uses the returned IDoxygen interface to read doxygen generated + * XML output and navigate through the information contained in it. + * + * @see createObjectModel() + */ class IMember; class IDocIterator; @@ -24,12 +33,20 @@ class ICompound; class ISection; class INode; +/*! \brief Read only interface to a string. + */ class IString { public: + /*! Returns a latin1 character representation of the string. */ virtual const char *latin1() const = 0; + /*! Returns a 16-bit unicode character representation of the character at + * position \a index in the string. The first character is at index 0. + */ virtual unsigned short unicodeCharAt(int index) const = 0; + /*! Returns true if this string is empty or false otherwise */ virtual bool isEmpty() const = 0; + /*! Returns the number of characters in the string. */ virtual int length() const = 0; }; @@ -107,24 +124,6 @@ class IMemberReferenceIterator virtual void release() = 0; }; -class IEnumValue -{ - public: - virtual const IString * name() const = 0; - virtual const IString * initializer() const = 0; -}; - -class IEnumValueIterator -{ - public: - virtual IEnumValue *toFirst() = 0; - virtual IEnumValue *toLast() = 0; - virtual IEnumValue *toNext() = 0; - virtual IEnumValue *toPrev() = 0; - virtual IEnumValue *current() const = 0; - virtual void release() = 0; -}; - class IDoc { public: @@ -161,8 +160,9 @@ class IDoc Entry, // 28 -> IDocEntry Section, // 29 -> IDocSection Preformatted, // 30 -> IDocPreformatted - Symbol, // 31 -> IDocSymbol - Root // 32 -> IDocRoot + Verbatim, // 31 -> IDocVerbatim + Symbol, // 32 -> IDocSymbol + Root // 33 -> IDocRoot }; virtual Kind kind() const = 0; }; @@ -399,6 +399,12 @@ class IDocPreformatted : public IDoc virtual IDocIterator *contents() const = 0; }; +class IDocVerbatim : public IDoc +{ + public: + virtual const IString *text() const = 0; +}; + class IDocSymbol : public IDoc { public: @@ -499,7 +505,8 @@ class IMember public: enum MemberKind { Invalid=0, Define, Property, Variable, Typedef, Enum, - Function, Signal, Prototype, Friend, DCOP, Slot + Function, Signal, Prototype, Friend, DCOP, Slot, + EnumValue }; virtual ICompound *compound() const = 0; virtual ISection *section() const = 0; @@ -525,11 +532,80 @@ class IMember virtual int definitionLine() const = 0; virtual IMemberReference *reimplements() const = 0; virtual IMemberReferenceIterator *reimplementedBy() const = 0; - virtual IEnumValueIterator *enumValues() const = 0; virtual IDocRoot *briefDescription() const = 0; virtual IDocRoot *detailedDescription() const = 0; }; +class IDefine : public IMember +{ + public: +}; + +class IProperty : public IMember +{ + public: +}; + +class IVariable : public IMember +{ + public: +}; + +class ITypedef : public IMember +{ + public: +}; + +class IFunction : public IMember +{ + public: +}; + +class ISignal : public IMember +{ + public: +}; + +class IPrototype : public IMember +{ + public: +}; + +class IFriend : public IMember +{ + public: +}; + +class IDCOP : public IMember +{ + public: +}; + +class ISlot : public IMember +{ + public: +}; + +class IEnumValue : public IMember +{ + public: + virtual const IString * name() const = 0; +}; + +#if 0 +class IEnumValueIterator +{ + public: + virtual IEnumValue *toFirst() = 0; + virtual IEnumValue *toLast() = 0; + virtual IEnumValue *toNext() = 0; + virtual IEnumValue *toPrev() = 0; + virtual IEnumValue *current() const = 0; + virtual void release() = 0; +}; +#endif + + class IMemberIterator { public: @@ -541,6 +617,12 @@ class IMemberIterator virtual void release() = 0; }; +class IEnum : public IMember +{ + public: + virtual IMemberIterator *enumValues() const = 0; +}; + /*! \brief The interface to a section in the object model. * * A compound can have a number of sections, where each |