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

RepositoryNotImplemented.h

Go to the documentation of this file.
00001 #ifndef Impala_Persistency_RepositoryNotImplemented_h
00002 #define Impala_Persistency_RepositoryNotImplemented_h
00003 
00004 #include "Persistency/Locator.h"
00005 
00006 namespace Impala
00007 {
00008 namespace Persistency
00009 {
00010 
00011 
00012 template <class T>
00013 class RepositoryNotImplemented
00014 {
00015 public:
00016 
00017     RepositoryNotImplemented()
00018     {
00019     }
00020 
00021     T*
00022     Get(const Locator& loc)
00023     {
00024         ILOG_ERROR("Get: Not implemented for " << loc);
00025         return 0;
00026     }
00027 
00028     void
00029     Add(const Locator& loc, void*)
00030     {
00031         ILOG_ERROR("Add: Not implemented for " << loc);
00032     }
00033 
00034 private:
00035 
00036     ILOG_VAR_DEC;
00037 };
00038 
00039 ILOG_VAR_INIT_TEMPL_1(RepositoryNotImplemented, T, Impala.Persistency);
00040 
00041 } // namespace Persistency
00042 } // namespace Impala
00043 
00044 #endif

Generated on Fri Mar 19 09:31:44 2010 for ImpalaSrc by  doxygen 1.5.1