summaryrefslogtreecommitdiff
path: root/soltools
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2006-09-22 07:56:28 +0000
committerVladimir Glazounov <vg@openoffice.org>2006-09-22 07:56:28 +0000
commitb98c2c4e1831d635b5c33501c72d93d5b1236291 (patch)
tree84f3308e62b1e63fcdf09ff9834916e5208480e2 /soltools
parenta6d5936851b04096bba87144d6b02ad56e48e6c5 (diff)
INTEGRATION: CWS vgbugs04 (1.1.2); FILE ADDED
2006/08/23 13:43:49 vg 1.1.2.3: #137785# case insensitive paths for Windows 2006/07/04 14:21:28 vg 1.1.2.2: #137785# optimize makedepend 2006/07/04 10:37:13 vg 1.1.2.1: #137785# optimize makedepend
Diffstat (limited to 'soltools')
-rw-r--r--soltools/mkdepend/collectdircontent.hxx57
1 files changed, 57 insertions, 0 deletions
diff --git a/soltools/mkdepend/collectdircontent.hxx b/soltools/mkdepend/collectdircontent.hxx
new file mode 100644
index 000000000000..1ffd9cf60f0c
--- /dev/null
+++ b/soltools/mkdepend/collectdircontent.hxx
@@ -0,0 +1,57 @@
+#ifndef COLLECTDIRCONTENT_H
+#define COLLECTDIRCONTENT_H
+
+#if defined __cplusplus
+
+#include <set>
+#include <map>
+#include <string>
+
+#if defined( WNT )
+#include <windows.h>
+#include <algorithm>
+#else
+#include <dirent.h>
+#endif // defined( WNT )
+
+#include <iostream>
+
+using namespace std;
+
+typedef set<string> DirContent;
+typedef map<string, DirContent> DirMap;
+typedef DirMap::value_type EntriesPair;
+typedef pair<string, string> PathFilePair;
+
+
+struct IncludesCollection {
+ private:
+ DirMap allIncludes;
+// bool search(string filePath);
+// bool add_dir(string dirPath);
+ PathFilePair split_path(const string& filePath);
+ void add_to_collection(const string& dirPath);
+
+ public:
+ bool exists(string filePath);
+};
+
+#else
+
+struct IncludesCollection;
+
+#endif
+
+#if defined __cplusplus
+extern "C" {
+#endif
+
+struct IncludesCollection * create_IncludesCollection(void);
+
+int call_IncludesCollection_exists(struct IncludesCollection* m, const char* filePath);
+
+#if defined __cplusplus
+}
+#endif
+
+#endif // COLLECTDIRCONTENT_H