diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2000-05-22 18:35:23 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2000-05-22 18:35:23 (GMT) |
commit | f38608d4bec002a5051c860a599dd4d5229a9671 (patch) | |
tree | 699a18c9a8c098fc845ba00c7eb093c73b497c5c /src/definition.h | |
parent | 8013b5fe71402e6c6bfd867e348b6cad73bd7386 (diff) | |
download | Doxygen-f38608d4bec002a5051c860a599dd4d5229a9671.zip Doxygen-f38608d4bec002a5051c860a599dd4d5229a9671.tar.gz Doxygen-f38608d4bec002a5051c860a599dd4d5229a9671.tar.bz2 |
Release-1.1.3-20000522
Diffstat (limited to 'src/definition.h')
-rw-r--r-- | src/definition.h | 16 |
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 |