![]() |
![]() |
#include <CoralServiceFactory.h>
Public Member Functions | |
coral::Service * | create (const std::string &componentname) const |
~CoralServiceFactory () | |
Static Public Member Functions | |
static CoralServiceFactory * | get () |
Private Member Functions | |
CoralServiceFactory () |
Definition at line 26 of file CoralServiceFactory.h.
CoralServiceFactory::~CoralServiceFactory | ( | ) |
Definition at line 8 of file CoralServiceFactory.cc.
{ }
CoralServiceFactory::CoralServiceFactory | ( | ) | [private] |
Definition at line 11 of file CoralServiceFactory.cc.
{ }
coral::Service * CoralServiceFactory::create | ( | const std::string & | componentname | ) | const |
Definition at line 22 of file CoralServiceFactory.cc.
References Exception, and reco::get().
{ coral::Service* sp=CoralServicePluginFactory::get()->create(componentname,componentname); if(sp==0) { throw cond::Exception("CoralServiceFactory") << "CoralServiceFactory:\n" << "Cannot find coral service: " << componentname << "\n" << "Perhaps the name is misspelled or is not a Plugin?\n" << "Try running EdmPluginDump to obtain a list of available Plugins."; } return sp; }
cond::CoralServiceFactory * CoralServiceFactory::get | ( | void | ) | [static] |
Definition at line 16 of file CoralServiceFactory.cc.
{ static cond::CoralServiceFactory singleInstance_; return &singleInstance_; }