aboutsummaryrefslogtreecommitdiff
path: root/src/cachehandler.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2008-12-01 23:10:44 +0000
committerMike Buland <eichlan@xagasoft.com>2008-12-01 23:10:44 +0000
commit6f3b85c5af1855e1695885fb28220c34f6a0673f (patch)
tree07fc5d4f955bc6c58eb7ad88bcce7a8294c53158 /src/cachehandler.h
parent350b052cfd866e3b3c7c4626551b49f8b75e55a1 (diff)
downloadlibbu++-6f3b85c5af1855e1695885fb28220c34f6a0673f.tar.gz
libbu++-6f3b85c5af1855e1695885fb28220c34f6a0673f.tar.bz2
libbu++-6f3b85c5af1855e1695885fb28220c34f6a0673f.tar.xz
libbu++-6f3b85c5af1855e1695885fb28220c34f6a0673f.zip
Wow, that's a lot of changes. You can use anything as a key now, as long as it
can be hashed. And we're about to test actually loading and saving persistant cache items. Fun.
Diffstat (limited to '')
-rw-r--r--src/cachehandler.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/cachehandler.h b/src/cachehandler.h
deleted file mode 100644
index 3b26970..0000000
--- a/src/cachehandler.h
+++ /dev/null
@@ -1,34 +0,0 @@
1#ifndef BU_CACHE_HANDLER_H
2#define BU_CACHE_HANDLER_H
3
4#include "bu/cptr.h"
5
6namespace Bu
7{
8 /**
9 * Handles I/O for data in the cache. This also assigns ID's to the newly
10 * created objects that are requested through this system.
11 */
12 template<class T>
13 class CacheHandler
14 {
15 public:
16 CacheHandler()
17 {
18 }
19
20 virtual ~CacheHandler()
21 {
22 }
23
24 virtual Bu::CPtr<T> load()=0;
25 virtual void unload( Bu::CPtr<T> pObj )=0;
26 virtual Bu::CPtr<T> create()=0;
27 virtual Bu::CPtr<T> create( T &rSrc )=0;
28 virtual void destroy( Bu::CPtr<T> pObj )=0;
29
30 private:
31 };
32};
33
34#endif