Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:50:22

0001 #include "CoralKernel/Service.h"
0002 #include "CoralKernel/ILoadableComponent.h"
0003 #include "FWCore/PluginManager/interface/PluginFactory.h"
0004 #include "FWCore/PluginManager/interface/PluginInfo.h"
0005 #include "CondCore/CondDB/interface/CoralServiceManager.h"
0006 #include "CondCore/CondDB/interface/CoralServiceFactory.h"
0007 coral::ILoadableComponent* cond::CoralServiceManager::newComponent(const std::string& componentname) {
0008   return cond::CoralServiceFactory::get()->create(componentname);
0009 }
0010 
0011 std::set<std::string> cond::CoralServiceManager::knownPlugins() const {
0012   std::vector<edmplugin::PluginInfo> pinfo = cond::CoralServicePluginFactory::get()->available();
0013   std::set<std::string> r;
0014   std::vector<edmplugin::PluginInfo>::iterator i;
0015   std::vector<edmplugin::PluginInfo>::iterator ibeg = pinfo.begin();
0016   std::vector<edmplugin::PluginInfo>::iterator iend = pinfo.end();
0017   for (i = ibeg; i < iend; ++i) {
0018     r.insert(i->name_);
0019   }
0020   return r;
0021 }