blob: ca95e20fc11ba0a5cf8a9d6ec5ff2214bee312b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
/******************************************************************************
*
* $Id$
*
* Copyright (C) 1997-1999 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
* granted. No representations are made about the suitability of this software
* for any purpose. It is provided "as is" without express or implied warranty.
* See the GNU General Public License for more details.
*
* All output generated with Doxygen is not covered by this license.
*
*/
#ifndef FILEDEF_H
#define FILEDEF_H
#include <qlist.h>
#include "index.h"
#include "config.h"
#include "definition.h"
class MemberList;
class FileList;
class ClassList;
class MemberDef;
class ClassDef;
class OutputList;
class DefineList;
class NamespaceDef;
class NamespaceList;
/*! \class FileDef filedef.h
\brief A File definition.
An object of this class contains all file information that is gathered.
This includes the members and compounds defined in the file.
The member writeDocumentation() can be used to generate the page of
documentation to HTML and LaTeX.
*/
class FileDef : public Definition
{
friend class FileName;
public:
//enum FileType { Source, Header, Unknown };
FileDef(const char *p,const char *n,const char *ref=0);
~FileDef();
/*! Returns the unique file name (this may include part of the path). */
QString name() const
{
if (fullPathNameFlag)
return filename;
else
return Definition::name();
}
/*! Returns nameString with all slashes replaced by underscores. */
//const char *diskName() const { return diskname; }
QString getOutputFileBase() const { return diskname; }
/*! Returns the absolute path including the file name. */
QString absFilePath() const { return filepath; }
/*! Returns the name of the verbatim copy of this file (if any). */
const char *includeName() const { return incName; }
/*! Returns the documentation that was available for this file. */
//const char *documentation() const { return doc; }
/*! Returns the brief description that was given for this file. */
//const char *briefDescription() const { return brief; }
/*! 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 setBriefDescription(const char *b) { brief=b; }
/*! Sets the documentaton of this file to \a d. */
//void setDocumentation(const char *d) { doc=d; }
/*! Returns the absolute path of this file. */
QString getPath() const { return path; }
/*! Returns true iff any documentation for this file is found. */
//bool hasDocumentation()
// { return extractAllFlag || !doc.isNull() || !brief.isNull(); }
/*! Returns true iff this file was externally defined
(i.e. read from a tag file) */
bool isReference() { return !reference.isNull(); }
/*! Returns the reference name of the external file, if any or 0
if the file is not defined. */
const char *getReference() { return reference; }
//void setFileType(FileType ft) { ftype = ft; }
//FileType fileType() const { return ftype; }
void writeDocumentation(OutputList &ol);
friend void generatedFileNames();
void insertMember(MemberDef *fd);
void insertClass(ClassDef *cd);
void insertNamespace(NamespaceDef *nd);
void computeAnchors();
private:
MemberList *memList;
ClassList *classList;
FileList *includeList;
NamespaceList *namespaceList;
DefineList *defineList;
//QString n;
//QString doc;
//QString brief;
QString reference;
QString path;
QString filepath;
QString diskname;
QString filename;
QString incName;
//FileType ftype;
};
/*! \class FileList filedef.h
\brief This class is list of file definitions.
It is based on QList.
*/
class FileList : public QList<FileDef>
{
public:
FileList();
~FileList();
int compareItems(GCI item1,GCI item2);
};
/*! \class FileListIterator filedef.h
\brief This class represents a file list iterator.
It is based on QListIterator.
*/
class FileListIterator : public QListIterator<FileDef>
{
public:
FileListIterator(const FileList &list);
};
#endif
|