CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions
cond::CoralServiceFactory Class Reference

#include <CoralServiceFactory.h>

Public Member Functions

coral::Service * create (const std::string &componentname) const
 
 ~CoralServiceFactory ()
 

Static Public Member Functions

static CoralServiceFactoryget ()
 

Private Member Functions

 CoralServiceFactory ()
 

Detailed Description

Definition at line 26 of file CoralServiceFactory.h.

Constructor & Destructor Documentation

CoralServiceFactory::~CoralServiceFactory ( )

Definition at line 8 of file CoralServiceFactory.cc.

8  {
9 }
CoralServiceFactory::CoralServiceFactory ( )
private

Definition at line 11 of file CoralServiceFactory.cc.

11  {
12 }

Member Function Documentation

coral::Service * CoralServiceFactory::create ( const std::string &  componentname) const

Definition at line 22 of file CoralServiceFactory.cc.

References Exception, and reco::get().

Referenced by cond::CoralServiceManager::newComponent().

22  {
23  coral::Service* sp=CoralServicePluginFactory::get()->create(componentname,componentname);
24  if(sp==0) {
25  throw cond::Exception("CoralServiceFactory")
26  << "CoralServiceFactory:\n"
27  << "Cannot find coral service: "
28  << componentname << "\n"
29  << "Perhaps the name is misspelled or is not a Plugin?\n"
30  << "Try running EdmPluginDump to obtain a list of available Plugins.";
31  }
32  return sp;
33 }
T get(const Candidate &c)
Definition: component.h:55
cond::CoralServiceFactory * CoralServiceFactory::get ( )
static