1 #ifndef ServiceRegistry_ServiceRegistry_h
2 #define ServiceRegistry_ServiceRegistry_h
33 namespace serviceregistry {
67 " no ServiceRegistry has been set for this thread");
77 " no ServiceRegistry has been set for this thread");
79 return manager_->
template isAvailable<T>();
97 bool associate =
true);
101 std::vector<edm::ParameterSet>
config;
103 boost::shared_ptr<serviceregistry::ServiceWrapper<T> >
105 manager->put(wrapper);
112 std::vector<edm::ParameterSet>
config;
116 boost::shared_ptr<serviceregistry::ServiceWrapper<T> >
118 manager->put(wrapper);
124 std::vector<edm::ParameterSet>
config;
126 manager->put(iWrapper);
133 std::vector<edm::ParameterSet>
config;
137 manager->put(iWrapper);
152 boost::shared_ptr<serviceregistry::ServicesManager>
manager_;
ServiceToken setContext(ServiceToken const &iNewToken)
virtual ~ServiceRegistry()
boost::shared_ptr< serviceregistry::ServicesManager > manager_
ServiceToken presentToken() const
static ServiceToken createContaining(std::auto_ptr< T > iService)
create a service token that holds the service defined by iService
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
static ServiceToken createContaining(boost::shared_ptr< serviceregistry::ServiceWrapper< T > > iWrapper, ServiceToken iToken, serviceregistry::ServiceLegacy iLegacy)
static ServiceToken createServicesFromConfig(std::string const &config)
ServiceRegistry const & operator=(ServiceRegistry const &)
void unsetContext(ServiceToken const &iOldToken)
static ServiceRegistry & instance()
Operate(ServiceToken const &iToken)
friend int main(int argc, char *argv[])
static ServiceToken createSet(std::vector< ParameterSet > &)
static ServiceToken createContaining(std::auto_ptr< T > iService, ServiceToken iToken, serviceregistry::ServiceLegacy iLegacy)
friend class edm::FwkImpl
static ServiceToken createContaining(boost::shared_ptr< serviceregistry::ServiceWrapper< T > > iWrapper)
create a service token that holds the service held by iWrapper
Operate const & operator=(Operate const &)
static HepMC::HEPEVT_Wrapper wrapper