merge the formfield patch from ooo-build
[ooovba.git] / soltools / mkdepend / collectdircontent.hxx
blob22b071e84be462e4a99e8afe903e76c0004df065
1 #ifndef COLLECTDIRCONTENT_H
2 #define COLLECTDIRCONTENT_H
4 #if defined __cplusplus
6 #include <set>
7 #include <map>
8 #include <string>
10 #if defined( WNT )
11 #include <windows.h>
12 #include <algorithm>
13 #else
14 #include <dirent.h>
15 #endif // defined( WNT )
17 #include <iostream>
19 using namespace std;
21 typedef set<string> DirContent;
22 typedef map<string, DirContent> DirMap;
23 typedef DirMap::value_type EntriesPair;
24 typedef pair<string, string> PathFilePair;
27 struct IncludesCollection {
28 private:
29 DirMap allIncludes;
30 // bool search(string filePath);
31 // bool add_dir(string dirPath);
32 PathFilePair split_path(const string& filePath);
33 void add_to_collection(const string& dirPath);
35 public:
36 bool exists(string filePath);
39 #else
41 struct IncludesCollection;
43 #endif
45 #if defined __cplusplus
46 extern "C" {
47 #endif
49 struct IncludesCollection * create_IncludesCollection(void);
51 int call_IncludesCollection_exists(struct IncludesCollection* m, const char* filePath);
53 #if defined __cplusplus
55 #endif
57 #endif // COLLECTDIRCONTENT_H