00001 #include "CondCore/ORA/interface/QueryableVectorData.h" 00002 #include "CondCore/ORA/interface/Selection.h" 00003 #include "CondCore/ORA/interface/Exception.h" 00004 00005 ora::LoaderClient::LoaderClient():m_loader(){ 00006 } 00007 00008 ora::LoaderClient::LoaderClient(boost::shared_ptr<IVectorLoader>& loader):m_loader(loader){ 00009 } 00010 00011 ora::LoaderClient::LoaderClient( const LoaderClient& rhs ):m_loader(rhs.m_loader){ 00012 } 00013 00014 ora::LoaderClient& ora::LoaderClient::operator=(const ora::LoaderClient& rhs ){ 00015 if(&rhs != this){ 00016 m_loader= rhs.m_loader; 00017 } 00018 return *this; 00019 } 00020 00021 ora::LoaderClient::~LoaderClient(){ 00022 } 00023 00024 boost::shared_ptr<ora::IVectorLoader> ora::LoaderClient::loader() const{ 00025 return m_loader; 00026 } 00027 00028 bool ora::LoaderClient::hasLoader() const { 00029 return m_loader.get()!=0; 00030 } 00031 00032 void ora::LoaderClient::install(boost::shared_ptr<IVectorLoader>& loader){ 00033 if(m_loader != loader){ 00034 m_loader = loader; 00035 } 00036 } 00037