summaryrefslogtreecommitdiffstats
path: root/src/definition.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2000-05-22 18:35:23 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2000-05-22 18:35:23 (GMT)
commit745526b6e9683de926af27c4313574a514a3d7c3 (patch)
tree699a18c9a8c098fc845ba00c7eb093c73b497c5c /src/definition.h
parent4f5775494986411db398172e98380acb76d5e3e6 (diff)
downloadDoxygen-745526b6e9683de926af27c4313574a514a3d7c3.zip
Doxygen-745526b6e9683de926af27c4313574a514a3d7c3.tar.gz
Doxygen-745526b6e9683de926af27c4313574a514a3d7c3.tar.bz2
Release-1.1.3-20000522
Diffstat (limited to 'src/definition.h')
-rw-r--r--src/definition.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/definition.h b/src/definition.h
index e5f125d..e9c6d15 100644
--- a/src/definition.h
+++ b/src/definition.h
@@ -25,12 +25,14 @@ class FileDef;
class OutputList;
class SectionList;
-/*! The common base class of all definitions. */
+/*! The common base class of all entity definitions found in the sources. */
class Definition
{
public:
/*! create a new definition */
- Definition(const char *name,const char *b=0,const char *d=0);
+ Definition(
+ const char *defFileName,int defLine,
+ const char *name,const char *b=0,const char *d=0);
/*! destroys the definition */
virtual ~Definition();
/*! returns the name of the definition */
@@ -92,17 +94,27 @@ class Definition
FileDef *getBodyDef() { return bodyDef; }
void writeSourceRef(OutputList &ol,const char *scopeName);
+ /*! returns the file in which this definition was found */
+ QCString getDefFileName() const { return defFileName; }
+ /*! returns the line number at which the definition was found */
+ int getDefLine() const { return defLine; }
+
protected:
int startBodyLine; // line number of the start of the definition
int endBodyLine; // line number of the end of the definition
FileDef *bodyDef; // file definition containing the function body
+ // where the item was found
+ QCString defFileName;
+ int defLine;
+
private:
QCString n; // name of the definition
QCString brief; // brief description
QCString doc; // detailed description
QCString ref; // reference to external documentation
SectionList *sectionList; // list of all sections
+
};
#endif