CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Private Member Functions

cond::CoralServiceFactory Class Reference

#include <CoralServiceFactory.h>

List of all members.

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.

                                              {
}
CoralServiceFactory::CoralServiceFactory ( ) [private]

Definition at line 11 of file CoralServiceFactory.cc.

                                             {
}

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().

                                                                    {
 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_;
}