CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

cache.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2002 by Jorrit Tyberghein
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_IUTIL_CACHE_H__
00020 #define __CS_IUTIL_CACHE_H__
00021 
00022 #include "csutil/scf.h"
00023 
00028 struct iDataBuffer;
00029 
00030 SCF_VERSION (iCacheManager, 0, 0, 1);
00031 
00053 struct iCacheManager : public iBase
00054 {
00059   virtual void SetCurrentType (const char* type) = 0;
00060 
00064   virtual const char* GetCurrentType () const = 0;
00065 
00070   virtual void SetCurrentScope (const char* scope) = 0;
00071 
00075   virtual const char* GetCurrentScope () const = 0;
00076 
00080   virtual bool CacheData (void* data, uint32 size,
00081         const char* type, const char* scope, uint32 id) = 0;
00082 
00089   virtual csPtr<iDataBuffer> ReadCache (
00090         const char* type, const char* scope, uint32 id) = 0;
00091 
00104   virtual bool ClearCache (const char* type = 0, const char* scope = 0,
00105         const uint32* id = 0) = 0;
00106 };
00107 
00108 #endif // __CS_IUTIL_CACHE_H__
00109 

Generated for Crystal Space by doxygen 1.2.14