#include <vfscache.h>
Inheritance diagram for csVfsCacheManager:
Public Methods | |
csVfsCacheManager (iObjectRegistry *object_reg, const char *vfsdir) | |
Construct the cache manager with the given directory. More... | |
virtual | ~csVfsCacheManager () |
virtual void | SetCurrentType (const char *type) |
Set current type. More... | |
virtual const char* | GetCurrentType () const |
Get current type or NULL if none set. | |
virtual void | SetCurrentScope (const char *scope) |
Set current scope. More... | |
virtual const char* | GetCurrentScope () const |
Get current scope or NULL if none set. | |
virtual bool | CacheData (void *data, uint32 size, const char *type, const char *scope, uint32 id) |
Cache some data. More... | |
virtual iDataBuffer* | ReadCache (const char *type, const char *scope, uint32 id) |
Retreive some data from the cache. More... | |
virtual bool | ClearCache (const char *type=NULL, const char *scope=NULL, const uint32 *id=NULL) |
Clear items from the cache. More... | |
Public Attributes | |
SCF_DECLARE_IBASE |
|
Construct the cache manager with the given directory. All cached data will be put somewhere in that directory. |
|
Cache some data. Returns true if this succeeded. Reimplemented from iCacheManager. |
|
Clear items from the cache. There are four ways to call this function:
Reimplemented from iCacheManager. |
|
Retreive some data from the cache. Returns NULL if the data could not be found in the cache. The returned data buffer should be DecRef()'ed if you are ready with it. Reimplemented from iCacheManager. |
|
Set current scope. This will be used in CacheData() and ReadCache() when the given 'scope' there is NULL. Reimplemented from iCacheManager. |
|
Set current type. This will be used in CacheData() and ReadCache() when the given 'type' there is NULL. Reimplemented from iCacheManager. |