summaryrefslogtreecommitdiffstats
path: root/src/definition.h
diff options
context:
space:
mode:
authormueller <mueller@afe2bf4a-e733-0410-8a33-86f594647bc7>1999-12-15 19:37:58 (GMT)
committermueller <mueller@afe2bf4a-e733-0410-8a33-86f594647bc7>1999-12-15 19:37:58 (GMT)
commit5576fbf6d0a8baa16fa65a37a172543397ee950a (patch)
treeb859924ab8503fed25bbfbc7ea96b72b9dee34b0 /src/definition.h
parentd4bdeb54df648007d9a2b4a9ec5c2ef3b84f1a3b (diff)
downloadDoxygen-5576fbf6d0a8baa16fa65a37a172543397ee950a.zip
Doxygen-5576fbf6d0a8baa16fa65a37a172543397ee950a.tar.gz
Doxygen-5576fbf6d0a8baa16fa65a37a172543397ee950a.tar.bz2
mods for doxygen-0.49-991106
Diffstat (limited to 'src/definition.h')
-rw-r--r--src/definition.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/src/definition.h b/src/definition.h
index 87b3c18..dac9d79 100644
--- a/src/definition.h
+++ b/src/definition.h
@@ -19,8 +19,10 @@
#include "qtbc.h"
#include <qlist.h>
-#include "config.h"
-#include "section.h"
+
+class FileDef;
+class OutputList;
+class SectionList;
/*! The common base class of all definitions. */
class Definition
@@ -36,6 +38,8 @@ class Definition
* definition.
*/
virtual QCString getOutputFileBase() const = 0;
+ /*! Returns the name of the source listing of this file. */
+ QCString sourceName() const { return getOutputFileBase()+"-source"; }
/*! returns the detailed description of this definition */
QCString documentation() const { return doc; }
/*! returns the brief description of this definition */
@@ -52,9 +56,7 @@ class Definition
*/
void setBriefDescription(const char *b);
/*! returns TRUE iff the definition is documented */
- virtual bool hasDocumentation()
- { return !doc.isNull() || !brief.isNull() || Config::extractAllFlag; }
-
+ virtual bool hasDocumentation();
virtual bool isLinkableInProject() = 0;
virtual bool isLinkable() = 0;
@@ -75,6 +77,15 @@ class Definition
*/
void addSectionsToDefinition(QList<QCString> *anchorList);
+ void setBodyLine(int bl) { bodyLine=bl; }
+ void setBodyDef(FileDef *fd) { bodyDef=fd; }
+ int getBodyLine() const { return bodyLine; }
+ FileDef *getBodyDef() { return bodyDef; }
+ void writeSourceRef(OutputList &ol);
+
+ protected:
+ int bodyLine; // line number of the definition
+ FileDef *bodyDef; // file definition containing the function body
private:
QCString n; // name of the definition
QCString brief; // brief description