diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2000-02-15 20:03:34 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2000-02-15 20:03:34 (GMT) |
commit | 082b421913688541087c4b810cd48a882c3d87c9 (patch) | |
tree | 50b1099761af52d0ca94caec83c8ff3a08efb753 /src/filedef.h | |
parent | 6e9c313b87a0daa86ca108e93d67fc4c9e5bec68 (diff) | |
download | Doxygen-082b421913688541087c4b810cd48a882c3d87c9.zip Doxygen-082b421913688541087c4b810cd48a882c3d87c9.tar.gz Doxygen-082b421913688541087c4b810cd48a882c3d87c9.tar.bz2 |
Upgrade to 1.1.0
Diffstat (limited to 'src/filedef.h')
-rw-r--r-- | src/filedef.h | 47 |
1 files changed, 39 insertions, 8 deletions
diff --git a/src/filedef.h b/src/filedef.h index 993a26e..a129fe6 100644 --- a/src/filedef.h +++ b/src/filedef.h @@ -2,7 +2,7 @@ * * $Id$ * - * Copyright (C) 1997-1999 by Dimitri van Heesch. + * Copyright (C) 1997-2000 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby @@ -20,10 +20,12 @@ #include "index.h" #include <qlist.h> #include <qintdict.h> +#include <qdict.h> #include "config.h" #include "definition.h" +#include "memberlist.h" -class MemberList; +class FileDef; class FileList; class ClassList; class ClassDef; @@ -34,6 +36,15 @@ class NamespaceDef; class NamespaceList; class NamespaceDict; +struct IncludeInfo +{ + IncludeInfo() { fileDef=0; local=FALSE; } + ~IncludeInfo() {} + FileDef *fileDef; + QCString includeName; + bool local; +}; + /*! \class FileDef filedef.h \brief A File definition. @@ -69,14 +80,17 @@ class FileDef : public Definition QCString absFilePath() const { return filepath; } /*! Returns the name of the verbatim copy of this file (if any). */ - const char *includeName() const { return incName; } + QCString includeName() const { return diskname+"-source"; } + + /*! Returns the name as it is used in the documentation */ + QCString docName() const { return docname; } void addSourceRef(int line,Definition *d,const char *anchor); Definition *getSourceDefinition(int lineNr); QCString getSourceAnchor(int lineNr); - /*! Sets the name of the include file to \a n. */ - void setIncludeName(const char *n_) { incName=n_; } + /* Sets the name of the include file to \a n. */ + //void setIncludeName(const char *n_) { incName=n_; } /*! Returns the absolute path of this file. */ QCString getPath() const { return path; } @@ -102,10 +116,25 @@ class FileDef : public Definition void addUsingDirective(NamespaceDef *nd); NamespaceList *getUsedNamespaces() const { return usingList; } + void setGenerateSource(bool b) { isSource=b; } + bool generateSource() const { return isSource; } + void addIncludeDependency(FileDef *fd,const char *incName,bool local); + QList<IncludeInfo> *includeFileList() const { return includeList; } + QDict<IncludeInfo> *includeFileDict() const { return includeDict; } + private: - MemberList *memList; + MemberList allMemberList; + MemberList defineMembers; + MemberList protoMembers; + MemberList typedefMembers; + MemberList enumMembers; + MemberList enumValMembers; + MemberList funcMembers; + MemberList varMembers; + ClassList *classList; - FileList *includeList; + QDict<IncludeInfo> *includeDict; + QList<IncludeInfo> *includeList; NamespaceDict *namespaceDict; NamespaceList *namespaceList; NamespaceList *usingList; @@ -114,9 +143,11 @@ class FileDef : public Definition QCString filepath; QCString diskname; QCString filename; - QCString incName; + QCString docname; + //QCString incName; QIntDict<Definition> *srcDefDict; QIntDict<QCString> *srcAnchorDict; + bool isSource; }; /*! \class FileList filedef.h |