summaryrefslogtreecommitdiffstats
path: root/src/dirdef.h
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2004-08-24 20:00:14 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2004-08-24 20:00:14 (GMT)
commit4b77f4fc83a7954a741c1b35ec50e918a2786559 (patch)
treeacf5ce8ed64ee56e5f7eec664f2f00260d068e9c /src/dirdef.h
parentbb18b811e8f1a4a939eadf28d12bc5f99dd74b82 (diff)
downloadDoxygen-4b77f4fc83a7954a741c1b35ec50e918a2786559.zip
Doxygen-4b77f4fc83a7954a741c1b35ec50e918a2786559.tar.gz
Doxygen-4b77f4fc83a7954a741c1b35ec50e918a2786559.tar.bz2
Release-1.3.8-20040824
Diffstat (limited to 'src/dirdef.h')
-rw-r--r--src/dirdef.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/src/dirdef.h b/src/dirdef.h
new file mode 100644
index 0000000..369bb09
--- /dev/null
+++ b/src/dirdef.h
@@ -0,0 +1,61 @@
+/******************************************************************************
+ *
+ *
+ *
+ * Copyright (C) 1997-2004 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.
+ *
+ * Documents produced by Doxygen are derivative works derived from the
+ * input used in their production; they are not affected by this license.
+ *
+ */
+
+#ifndef DIRDEF_H
+#define DIRDEF_H
+
+#include "qtbc.h"
+#include "sortdict.h"
+#include "definition.h"
+
+class FileList;
+class ClassSDict;
+class QStrList;
+class FileDef;
+
+class DirDef : public Definition
+{
+ public:
+ DirDef(const char *path);
+ virtual ~DirDef();
+ virtual DefType definitionType() { return TypeDir; }
+ virtual QCString getOutputFileBase() const { return ""; }
+ virtual bool isLinkableInProject() const { return FALSE; }
+ virtual bool isLinkable() const { return FALSE; }
+ QCString displayName() const { return m_dispName; }
+ void addSubDir(DirDef *subdir);
+ FileList * getFiles() const { return m_fileList; }
+ ClassSDict * getClasses() const { return m_classSDict; }
+ DirDef *parent() const { return m_parent; }
+ void addFile(FileDef *fd);
+
+ static DirDef *mergeDirectoryInTree(const QCString &path);
+
+ private:
+ static DirDef *createNewDir(const char *path);
+ static bool matchPath(const QCString &path,QStrList &l);
+
+ QList<DirDef> m_subdirs;
+ DirDef *m_parent;
+ QCString m_dispName;
+ FileList *m_fileList; // list of files in the group
+ ClassSDict *m_classSDict; // list of classes in the group
+};
+
+void buildDirectories();
+
+#endif