CMS 3D CMS Logo

List of all members | Public Member Functions
cond::CoralServiceManager Class Reference

#include <CoralServiceManager.h>

Inheritance diagram for cond::CoralServiceManager:

Public Member Functions

std::set< std::string > knownPlugins () const override
 Returns the list of known components. More...
 
coral::ILoadableComponent * newComponent (const std::string &componentName) override
 
 ~CoralServiceManager () override
 

Detailed Description

Definition at line 25 of file CoralServiceManager.h.

Constructor & Destructor Documentation

cond::CoralServiceManager::~CoralServiceManager ( )
inlineoverride

Definition at line 30 of file CoralServiceManager.h.

30 {}

Member Function Documentation

std::set< std::string > CoralServiceManager::knownPlugins ( ) const
override

Returns the list of known components.

Definition at line 13 of file CoralServiceManager.cc.

References reco::get(), mps_fire::i, and alignCSCRings::r.

13  {
14  std::vector<edmplugin::PluginInfo> pinfo=cond::CoralServicePluginFactory::get()->available();
15  std::set<std::string> r;
16  std::vector<edmplugin::PluginInfo>::iterator i;
17  std::vector<edmplugin::PluginInfo>::iterator ibeg=pinfo.begin();
18  std::vector<edmplugin::PluginInfo>::iterator iend=pinfo.end();
19  for(i=ibeg;i<iend;++i){
20  r.insert(i->name_);
21  }
22  return r;
23 }
T get(const Candidate &c)
Definition: component.h:55
coral::ILoadableComponent * CoralServiceManager::newComponent ( const std::string &  componentName)
override

Definition at line 8 of file CoralServiceManager.cc.

References cond::CoralServiceFactory::create(), and cond::CoralServiceFactory::get().

8  {
9  return cond::CoralServiceFactory::get()->create(componentname);
10 }
static CoralServiceFactory * get()
coral::Service * create(const std::string &componentname) const