diff options
Diffstat (limited to '')
-rw-r--r-- | src/statcache.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/statcache.h b/src/statcache.h new file mode 100644 index 0000000..e081ec3 --- /dev/null +++ b/src/statcache.h | |||
@@ -0,0 +1,24 @@ | |||
1 | #ifndef STAT_CACHE_H | ||
2 | #define STAT_CACHE_H | ||
3 | |||
4 | #include <bu/hash.h> | ||
5 | #include <bu/singleton.h> | ||
6 | #include <bu/fstring.h> | ||
7 | #include <time.h> | ||
8 | |||
9 | class StatCache : public Bu::Singleton<StatCache> | ||
10 | { | ||
11 | friend class Bu::Singleton<StatCache>; | ||
12 | private: | ||
13 | StatCache(); | ||
14 | virtual ~StatCache(); | ||
15 | |||
16 | public: | ||
17 | time_t mtime( const Bu::FString &sFileName ); | ||
18 | |||
19 | private: | ||
20 | typedef Bu::Hash<Bu::FString, time_t> TimeHash; | ||
21 | TimeHash hMTime; | ||
22 | }; | ||
23 | |||
24 | #endif | ||