Main Page
Namespaces
Classes
Package Documentation
CondCore
CondDB
src
CoralServiceFactory.cc
Go to the documentation of this file.
1
#include "
CondCore/CondDB/interface/CoralServiceFactory.h
"
2
#include "
CondCore/CondDB/interface/Exception.h
"
3
#include "CoralKernel/Service.h"
4
5
EDM_REGISTER_PLUGINFACTORY
(
cond::CoralServicePluginFactory
,
"CoralService"
);
6
7
8
cond::CoralServiceFactory::~CoralServiceFactory
() {
9
}
10
11
cond::CoralServiceFactory::CoralServiceFactory
() {
12
}
13
14
15
cond::CoralServiceFactory
*
16
cond::CoralServiceFactory::get
() {
17
static
cond::CoralServiceFactory
singleInstance_;
18
return
&singleInstance_;
19
}
20
21
coral::Service*
22
cond::CoralServiceFactory::create
(
const
std::string
& componentname)
const
{
23
std::unique_ptr<cond::CoralServiceWrapperBase> sp{
CoralServicePluginFactory::get
()->create(componentname)};
24
return
sp->create(componentname);
25
}
cond::CoralServiceFactory::CoralServiceFactory
CoralServiceFactory()
Definition:
CoralServiceFactory.cc:11
cond::CoralServiceFactory
Definition:
CoralServiceFactory.h:27
EDM_REGISTER_PLUGINFACTORY
#define EDM_REGISTER_PLUGINFACTORY(_factory_, _category_)
Definition:
PluginFactory.h:86
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
Exception.h
CoralServiceFactory.h
cond::CoralServiceFactory::get
static CoralServiceFactory * get()
Definition:
CoralServiceFactory.cc:16
edmplugin::PluginFactory
Definition:
PluginFactory.h:33
cond::CoralServiceFactory::~CoralServiceFactory
~CoralServiceFactory()
Definition:
CoralServiceFactory.cc:8
cond::CoralServiceFactory::create
coral::Service * create(const std::string &componentname) const
Definition:
CoralServiceFactory.cc:22
reco::get
T get(const Candidate &c)
Definition:
component.h:55
Generated for CMSSW Reference Manual by
1.8.11