Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

RepositoryStub.h

Go to the documentation of this file.
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 } // namespace Persistency
00048 } // namespace Impala
00049 
00050 #endif

Generated on Thu Jan 13 09:05:10 2011 for ImpalaSrc by  doxygen 1.5.1