1 #ifndef art_Framework_EventProcessor_ServiceDirector_h 2 #define art_Framework_EventProcessor_ServiceDirector_h 7 #include "cetlib/HorizontalRule.h" 8 #include "cetlib_except/demangle.h" 15 class ServiceDirector;
24 template <
typename SERVICE,
typename... ARGS>
31 template <
typename SERVICE,
typename... ARGS>
37 constexpr cet::HorizontalRule rule{100};
40 << rule(
'=') <<
"\n\n" 41 <<
"!! The following service has been misconfigured: !!" 43 << rule(
'-') <<
"\n\nservice_type: " 47 << rule(
'=') <<
"\n\n";
std::string bold_fontify(std::string const &s)
void add(std::unique_ptr< T > &&serv)
ServiceDirector(fhicl::ParameterSet &&services, ActivityRegistry &areg, ServiceToken &token)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
char const * what() const noexcept override
void addSystemService(ARGS &&...args)
ServiceToken & serviceToken_