aboutsummaryrefslogtreecommitdiff
path: root/src/statcache.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/statcache.h24
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
9class StatCache : public Bu::Singleton<StatCache>
10{
11friend class Bu::Singleton<StatCache>;
12private:
13 StatCache();
14 virtual ~StatCache();
15
16public:
17 time_t mtime( const Bu::FString &sFileName );
18
19private:
20 typedef Bu::Hash<Bu::FString, time_t> TimeHash;
21 TimeHash hMTime;
22};
23
24#endif