csVfsCacheManager Class Reference
This is a general cache that can cache data on VFS. More...
#include <vfscache.h>
Inheritance diagram for csVfsCacheManager:

Public Methods | |
| csVfsCacheManager (iObjectRegistry *object_reg, const char *vfsdir) | |
| Construct the cache manager with the given directory. | |
| virtual void | SetCurrentType (const char *type) |
| Set current type. | |
| virtual const char * | GetCurrentType () const |
| Get current type or 0 if none set. | |
| virtual void | SetCurrentScope (const char *scope) |
| Set current scope. | |
| virtual const char * | GetCurrentScope () const |
| Get current scope or 0 if none set. | |
| virtual bool | CacheData (void *data, uint32 size, const char *type, const char *scope, uint32 id) |
| Cache some data. | |
| virtual csPtr< iDataBuffer > | ReadCache (const char *type, const char *scope, uint32 id) |
| Retrieve some data from the cache. | |
| virtual bool | ClearCache (const char *type=0, const char *scope=0, const uint32 *id=0) |
| Clear items from the cache. | |
Detailed Description
This is a general cache that can cache data on VFS.
Definition at line 34 of file vfscache.h.
Constructor & Destructor Documentation
|
||||||||||||
|
Construct the cache manager with the given directory. All cached data will be put somewhere in that directory. |
Member Function Documentation
|
||||||||||||||||||||||||
|
Cache some data. Returns true if this succeeded. Implements iCacheManager. |
|
||||||||||||||||
|
Clear items from the cache.
Implements iCacheManager. |
|
|
Get current scope or 0 if none set.
Implements iCacheManager. Definition at line 74 of file vfscache.h. |
|
|
Get current type or 0 if none set.
Implements iCacheManager. Definition at line 66 of file vfscache.h. |
|
||||||||||||||||
|
Retrieve some data from the cache. Returns 0 if the data could not be found in the cache. Implements iCacheManager. |
|
|
Set current scope.
Implements iCacheManager. |
|
|
Set current type.
Implements iCacheManager. |
The documentation for this class was generated from the following file:
- csutil/vfscache.h
Generated for Crystal Space by doxygen 1.2.18
