#ifndef COLLECTDIRCONTENT_H #define COLLECTDIRCONTENT_H #if defined __cplusplus #include #include #include #if defined( WNT ) #include #include #else #include #endif // defined( WNT ) #include using namespace std; typedef set DirContent; typedef map DirMap; typedef DirMap::value_type EntriesPair; typedef pair 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); void delete_IncludesCollection(struct IncludesCollection *); int call_IncludesCollection_exists(struct IncludesCollection* m, const char* filePath); #if defined __cplusplus } #endif #endif // COLLECTDIRCONTENT_H