00001 #ifndef Impala_Persistency_RepositoryStub_h
00002 #define Impala_Persistency_RepositoryStub_h
00003
00004 #include "Persistency/Locator.h"
00005
00006 namespace Impala
00007 {
00008 namespace Persistency
00009 {
00010
00011
00012 class RepositoryStub
00013 {
00014 public:
00015
00016 RepositoryStub()
00017 {
00018 }
00019
00020 bool
00021 Exists(const Locator& loc)
00022 {
00023 ILOG_ERROR("[Exists] I am a stub and should never be called");
00024 return 0;
00025 }
00026
00027 void*
00028 Get(const Locator& loc)
00029 {
00030 ILOG_ERROR("[Get] I am a stub and should never be called");
00031 return 0;
00032 }
00033
00034 void
00035 Add(const Locator& loc, void*)
00036 {
00037 ILOG_ERROR("[Add] I am a stub and should never be called");
00038 }
00039
00040 private:
00041
00042 ILOG_VAR_DEC;
00043 };
00044
00045 ILOG_VAR_INIT(RepositoryStub, Impala.Persistency);
00046
00047 }
00048 }
00049
00050 #endif