1 #ifndef art_Framework_Services_Registry_ServiceRegistry_h 2 #define art_Framework_Services_Registry_ServiceRegistry_h 8 #include "cetlib/exempt_ptr.h" 17 template <
typename T, art::ServiceScope>
32 return mgr->isAvailable<T>();
35 <<
" no ServiceRegistry has been set for this thread";
50 <<
" no ServiceRegistry has been set for this thread";
55 cet::exempt_ptr<ServicesManager>
manager_{
nullptr};
static ServiceRegistry & instance() noexcept
ServiceRegistry() noexcept
void setManager(ServicesManager *)
cet::exempt_ptr< ServicesManager > manager_
static bool isAvailable()
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
~ServiceRegistry() noexcept