00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __IUTIL_CACHE_H__
00020 #define __IUTIL_CACHE_H__
00021
00022 #include "csutil/scf.h"
00023
00024 struct iDataBuffer;
00025
00026 SCF_VERSION (iCacheManager, 0, 0, 1);
00027
00049 struct iCacheManager : public iBase
00050 {
00055 virtual void SetCurrentType (const char* type) = 0;
00056
00060 virtual const char* GetCurrentType () const = 0;
00061
00066 virtual void SetCurrentScope (const char* scope) = 0;
00067
00071 virtual const char* GetCurrentScope () const = 0;
00072
00076 virtual bool CacheData (void* data, uint32 size,
00077 const char* type, const char* scope, uint32 id) = 0;
00078
00085 virtual iDataBuffer* ReadCache (
00086 const char* type, const char* scope, uint32 id) = 0;
00087
00100 virtual bool ClearCache (const char* type = NULL, const char* scope = NULL,
00101 const uint32* id = NULL) = 0;
00102 };
00103
00104 #endif // __IUTIL_CACHE_H__
00105