![]() |
![]() |
00001 #ifndef CondCore_DBCommon_PoolContainerManager_H 00002 #define CondCore_DBCommon_PoolContainerManager_H 00003 #include "CondCore/DBCommon/interface/ContainerIterator.h" 00004 #include <vector> 00005 #include <string> 00006 namespace cond{ 00007 class PoolTransaction; 00008 class PoolContainerManager{ 00009 public: 00010 explicit PoolContainerManager( PoolTransaction& pooldb ); 00011 void listAll( std::vector<std::string>& containers ); 00012 template<typename T> 00013 ContainerIterator<T>* newContainerIterator(const std::string& containername); 00014 void exportContainer( PoolTransaction& destdb, 00015 const std::string& containername, 00016 const std::string& className); 00017 private: 00018 cond::PoolTransaction* m_pooldb; 00019 }; 00020 } 00021 template<typename T> 00022 cond::ContainerIterator<T>* cond::PoolContainerManager::newContainerIterator(const std::string& containername){ 00023 return new cond::ContainerIterator<T>(*m_pooldb, containername); 00024 } 00025 #endif