diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2010-01-04 23:24:55 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2010-01-04 23:24:55 +0000 |
| commit | abe69082514b61181c6bc15a341895c971ecdc43 (patch) | |
| tree | ffeb8791f5b95ba13c7c05f3c0d434c1755910dd /src/cache.h | |
| parent | ff9e70dfa03fa1fb21bbb6d7de5a8fd85f31bba3 (diff) | |
| download | build-abe69082514b61181c6bc15a341895c971ecdc43.tar.gz build-abe69082514b61181c6bc15a341895c971ecdc43.tar.bz2 build-abe69082514b61181c6bc15a341895c971ecdc43.tar.xz build-abe69082514b61181c6bc15a341895c971ecdc43.zip | |
The cache works...really well.
Diffstat (limited to '')
| -rw-r--r-- | src/cache.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cache.h b/src/cache.h index 31da981..8932091 100644 --- a/src/cache.h +++ b/src/cache.h | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | #include <bu/list.h> | 7 | #include <bu/list.h> |
| 8 | 8 | ||
| 9 | #include "variable.h" | 9 | #include "variable.h" |
| 10 | #include "types.h" | ||
| 10 | 11 | ||
| 11 | class Cache : public Bu::Singleton<Cache> | 12 | class Cache : public Bu::Singleton<Cache> |
| 12 | { | 13 | { |
| @@ -21,12 +22,14 @@ public: | |||
| 21 | void load(); | 22 | void load(); |
| 22 | void save(); | 23 | void save(); |
| 23 | 24 | ||
| 24 | 25 | StrList getRequires( const Bu::FString &sOutput ); | |
| 26 | void setRequires( const Bu::FString &sOutput, StrList lReqs ); | ||
| 25 | 27 | ||
| 26 | private: | 28 | private: |
| 29 | bool bCacheChanged; | ||
| 27 | Bu::FString sCacheFile; | 30 | Bu::FString sCacheFile; |
| 28 | bool bIsLoaded; | 31 | bool bIsLoaded; |
| 29 | typedef Bu::Hash<Bu::FString, Bu::List<Bu::FString> > ReqHash; | 32 | typedef Bu::Hash<Bu::FString, StrList> ReqHash; |
| 30 | ReqHash hRequires; | 33 | ReqHash hRequires; |
| 31 | typedef Bu::Hash<Bu::FString, Variable> VarHash; | 34 | typedef Bu::Hash<Bu::FString, Variable> VarHash; |
| 32 | VarHash hVariables; | 35 | VarHash hVariables; |
