summaryrefslogtreecommitdiffstats
path: root/src/definition.h
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-10-01 17:23:42 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-10-01 17:23:42 (GMT)
commit499475795ed160e3a1e9cb571adc1ad86dc6a8ba (patch)
treeff3e5497c510b749f3d2e73414320758618faa42 /src/definition.h
parent168b741da042373d667e226cace55c9e82ec8faa (diff)
downloadDoxygen-499475795ed160e3a1e9cb571adc1ad86dc6a8ba.zip
Doxygen-499475795ed160e3a1e9cb571adc1ad86dc6a8ba.tar.gz
Doxygen-499475795ed160e3a1e9cb571adc1ad86dc6a8ba.tar.bz2
Release-1.2.2-20001001
Diffstat (limited to 'src/definition.h')
-rw-r--r--src/definition.h25
1 files changed, 15 insertions, 10 deletions
diff --git a/src/definition.h b/src/definition.h
index e8f71d7..7332e61 100644
--- a/src/definition.h
+++ b/src/definition.h
@@ -32,27 +32,32 @@ class MemberDef;
class Definition
{
public:
- /*! create a new definition */
+ /*! Types of derived classes */
+ enum DefType { TypeClass, TypeMember, TypeFile, TypeGroup, TypeNamespace };
+ /*! Use this for dynamic inspection of the derived class */
+ virtual DefType definitionType() = 0;
+
+ /*! Create a new definition */
Definition(
const char *defFileName,int defLine,
const char *name,const char *b=0,const char *d=0);
- /*! destroys the definition */
+ /*! Destroys the definition */
virtual ~Definition();
- /*! returns the name of the definition */
+ /*! Returns the name of the definition */
const QCString& name() const { return n; }
- /*! returns the base name of the output file that contains this
+ /*! Returns the base name of the output file that contains this
* definition.
*/
virtual QCString getOutputFileBase() const = 0;
/*! Returns the name of the source listing of this file. */
const QCString sourceName() const { return getOutputFileBase()+"-source"; }
- /*! returns the detailed description of this definition */
+ /*! Returns the detailed description of this definition */
const QCString& documentation() const { return doc; }
- /*! returns the brief description of this definition */
+ /*! Returns the brief description of this definition */
const QCString& briefDescription() const { return brief; }
- /*! sets a new \a name for the definition */
+ /*! Sets a new \a name for the definition */
void setName(const char *name) { n=name; }
- /*! sets the documentation of this definition to \a d. */
+ /*! Sets the documentation of this definition to \a d. */
void setDocumentation(const char *d,bool stripWhiteSpace=TRUE)
{
if (stripWhiteSpace)
@@ -60,11 +65,11 @@ class Definition
else
doc=d;
}
- /*! sets the brief description of this definition to \a b.
+ /*! Sets the brief description of this definition to \a b.
* A dot is added to the sentence if not available.
*/
void setBriefDescription(const char *b);
- /*! returns TRUE iff the definition is documented */
+ /*! Returns TRUE iff the definition is documented */
virtual bool hasDocumentation();
virtual bool isLinkableInProject() = 0;
virtual bool isLinkable() = 0;