aboutsummaryrefslogtreecommitdiff
path: root/src/cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cache.h')
-rw-r--r--src/cache.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/cache.h b/src/cache.h
new file mode 100644
index 0000000..b255e94
--- /dev/null
+++ b/src/cache.h
@@ -0,0 +1,33 @@
1#ifndef CACHE_H
2#define CACHE_H
3
4#include <bu/singleton.h>
5#include <bu/fstring.h>
6#include <bu/hash.h>
7#include <bu/list.h>
8
9#include "variable.h"
10
11class Cache : public Bu::Singleton<Cache>
12{
13friend class Bu::Singleton<Cache>;
14private:
15 Cache();
16 virtual ~Cache();
17
18public:
19 void bind( const Bu::FString &sCacheFile );
20
21 void load();
22 void save();
23
24private:
25 Bu::FString sCacheFile;
26 bool bIsLoaded;
27 typedef Bu::Hash<Bu::FString, Bu::List<Bu::FString> > ReqHash;
28 ReqHash hRequires;
29 typedef Bu::Hash<Bu::FString, Variable> VarHash;
30 VarHash hVariables;
31};
32
33#endif