store headers only once, refs #7

This commit is contained in:
Marc Wäckerlin
2010-10-29 10:54:12 +00:00
parent a0cd614bf3
commit 6846ed0daf
1026 changed files with 12807 additions and 99284 deletions

View File

@@ -0,0 +1,42 @@
// ---------------------------------------------------------------------------
// Name: actITokenFileCache.h
// Product: cv act library
// Purpose: Interface used for FID based binary cache.
//
// Copyright: (c) 2008 cv cryptovision GmbH
// all rights reserved.
// Licence: The conditions for the use of this software are regulated
// in the cv act library licence agreement.
//
// Autor: Markus Tesche
// Date: 11/07/2008
// ---------------------------------------------------------------------------
#ifndef ACT_ITokenFileCache_h
#define ACT_ITokenFileCache_h
#include "actIRefCounted.h"
#include <map>
namespace act
{
class Blob;
class IToken;
//
// ITokenFileCache
class ITokenFileCache : public IRefCounted
{
protected:
typedef std::map<Blob, Blob> CacheMap;
public:
virtual bool InitCache(IToken* token) = 0;
virtual Blob GetCache(const Blob& filepath) const = 0;
virtual void PutCache(const Blob& filepath, const Blob& memory) const = 0;
};
} // namespace act
#endif // ACT_ITokenFileCache_h