00001 #ifndef CDBBDB_CACHE_HH
00002 #define CDBBDB_CACHE_HH
00003
00004
00005
00006
00007 #include "CdbBase/CdbCommon.hh"
00008
00009 template< class Object > class CdbItr;
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 template< class Object >
00020 class CdbBdbCache {
00021
00022 public:
00023
00024
00025
00026
00027
00028 virtual ~CdbBdbCache( );
00029
00030
00031
00032 virtual void addObject( const Object& theKeyRef,
00033 const Object& theValueRef ) = 0;
00034
00035 virtual Object findObject( const Object& theKeyRef ) const = 0;
00036
00037 virtual CdbItr< Object > iterator( ) const = 0;
00038 };
00039
00040 #ifdef BABAR_COMP_INST
00041 #include "CdbBdb/CdbBdbCache.cc"
00042 #endif
00043
00044 #endif