Public Member Functions | Private Attributes | List of all members
art::ServiceDirector Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/art/v2_13_00/source/art/Framework/EventProcessor/ServiceDirector.h"

Public Member Functions

 ServiceDirector (fhicl::ParameterSet &&services, ActivityRegistry &areg, ServiceToken &token)
 
template<typename SERVICE , typename... ARGS>
void addSystemService (ARGS &&...args)
 

Private Attributes

ServiceTokenserviceToken_
 

Detailed Description

Definition at line 18 of file ServiceDirector.h.

Constructor & Destructor Documentation

art::ServiceDirector::ServiceDirector ( fhicl::ParameterSet &&  services,
ActivityRegistry areg,
ServiceToken token 
)
explicit

Member Function Documentation

template<typename SERVICE , typename... ARGS>
void art::ServiceDirector::addSystemService ( ARGS &&...  args)

Definition at line 33 of file ServiceDirector.h.

References art::ServiceToken::add(), make_syst_table_plots::args, art::detail::bold_fontify(), art::errors::Configuration, e, serviceToken_, and fhicl::detail::validationException::what().

33  {
34  serviceToken_.add(std::make_unique<SERVICE>(std::forward<ARGS>(args)...));
35 }
37  constexpr cet::HorizontalRule rule{100};
39  << "\n"
40  << rule('=') << "\n\n"
41  << "!! The following service has been misconfigured: !!"
42  << "\n\n"
43  << rule('-') << "\n\nservice_type: "
44  << art::detail::bold_fontify(cet::demangle_symbol(typeid(SERVICE).name()))
45  << "\n\n"
46  << e.what() << "\n"
47  << rule('=') << "\n\n";
48 }
std::string bold_fontify(std::string const &s)
Definition: bold_fontify.h:9
const XML_Char * name
Definition: expat.h:151
void add(std::unique_ptr< T > &&serv)
Definition: ServiceToken.h:46
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
char const * what() const noexcept override
Float_t e
Definition: plot.C:35
ServiceToken & serviceToken_

Member Data Documentation

ServiceToken& art::ServiceDirector::serviceToken_
private

Definition at line 28 of file ServiceDirector.h.

Referenced by addSystemService().


The documentation for this class was generated from the following file: