csutil/nulcache.h
Go to the documentation of this file.00001 /* 00002 Copyright (C) 2002 by Frank Richter 00003 00004 This program is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU General Public License as published by 00006 the Free Software Foundation; either version 2 of the License, or 00007 (at your option) any later version. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU General Public License for more details. 00013 00014 You should have received a copy of the GNU General Public License 00015 along with this program; if not, write to the Free Software 00016 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 */ 00018 00019 #ifndef __CS_UTIL_NULCACHE_H__ 00020 #define __CS_UTIL_NULCACHE_H__ 00021 00025 #include "iutil/cache.h" 00026 00030 class csNullCacheManager : public iCacheManager 00031 { 00032 public: 00036 csNullCacheManager (); 00037 00038 virtual ~csNullCacheManager (); 00039 00040 SCF_DECLARE_IBASE; 00041 00045 virtual void SetCurrentType (const char* type); 00049 virtual const char* GetCurrentType () const { return 0; } 00053 virtual void SetCurrentScope (const char* scope); 00057 virtual const char* GetCurrentScope () const { return 0; } 00061 virtual bool CacheData (void* data, uint32 size, 00062 const char* type, const char* scope, uint32 id); 00066 virtual csPtr<iDataBuffer> ReadCache (const char* type, const char* scope, 00067 uint32 id); 00071 virtual bool ClearCache (const char* type = 0, const char* scope = 0, 00072 const uint32* id = 0); 00073 }; 00074 00075 #endif // __CS_UTIL_NULCACHE_H__ 00076
Generated for Crystal Space by doxygen 1.2.18