From 501bac50016628b787906392ce7af8262e561e52 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 29 Dec 2009 01:11:27 +0000 Subject: Ok, cache stuff is in, and that's good, now we have to use it. --- src/cache.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/cache.h (limited to 'src/cache.h') 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 @@ +#ifndef CACHE_H +#define CACHE_H + +#include +#include +#include +#include + +#include "variable.h" + +class Cache : public Bu::Singleton +{ +friend class Bu::Singleton; +private: + Cache(); + virtual ~Cache(); + +public: + void bind( const Bu::FString &sCacheFile ); + + void load(); + void save(); + +private: + Bu::FString sCacheFile; + bool bIsLoaded; + typedef Bu::Hash > ReqHash; + ReqHash hRequires; + typedef Bu::Hash VarHash; + VarHash hVariables; +}; + +#endif -- cgit v1.2.3