00001 #ifndef Impala_Persistency_RawDataSetRepository_h 00002 #define Impala_Persistency_RawDataSetRepository_h 00003 00004 #include "Persistency/RepositoryDispatcher.h" 00005 #include "Persistency/RepositoryStub.h" 00006 #include "Core/Database/RawDataSet.h" 00007 #include "Persistency/VideoSetRepository.h" 00008 #include "Persistency/ImageSetRepository.h" 00009 00010 namespace Impala 00011 { 00012 namespace Persistency 00013 { 00014 00015 00016 class RawDataSetRepository 00017 : public RepositoryDispatcher<Locator, 00018 Core::Database::RawDataSet, 00019 RepositoryStub, 00020 RepositoryStub> 00021 { 00022 public: 00023 00024 typedef Core::Database::RawDataSet RawDataSet; 00025 00026 RawDataSet* 00027 Get(const Locator& loc) 00028 { 00029 if (VideoSetRepository().Exists(loc)) 00030 return VideoSetRepository().Get(loc); 00031 00032 ILOG_ERROR("Get: Could find " << loc); 00033 return 0; 00034 } 00035 00036 void 00037 Add(const Locator& loc, RawDataSet* tSet) 00038 { 00039 ILOG_ERROR("Add: not implemented"); 00040 } 00041 00042 private: 00043 00044 ILOG_VAR_DEC; 00045 00046 }; 00047 00048 ILOG_VAR_INIT(RawDataSetRepository, Impala.Persistency); 00049 00050 } // namespace Persistency 00051 } // namespace Impala 00052 00053 #endif