summaryrefslogtreecommitdiffstats
path: root/src/definition.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>1999-12-15 19:37:58 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>1999-12-15 19:37:58 (GMT)
commit916d6d5c6f6c9d14c4c9a636582671c81447f54a (patch)
treeb859924ab8503fed25bbfbc7ea96b72b9dee34b0 /src/definition.h
parenta54eecdf4b3c961ff41bc5d3ea6f21713e08f903 (diff)
downloadDoxygen-916d6d5c6f6c9d14c4c9a636582671c81447f54a.zip
Doxygen-916d6d5c6f6c9d14c4c9a636582671c81447f54a.tar.gz
Doxygen-916d6d5c6f6c9d14c4c9a636582671c81447f54a.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