Loading [MathJax]/extensions/tex2jax.js
Go to the documentation of this file.
23 using Auditor::Auditor;
35 std::string
i_id( std::string
const&
evt, std::string_view caller ) {
return std::string{ caller } +
":" +
evt; }
44 return Auditor::initialize().andThen( [&]() ->
StatusCode {
45 m_chronoSvc = serviceLocator()->service(
"ChronoStatSvc" );
46 if ( !m_chronoSvc.get() ) {
47 error() <<
"Cannot get ChronoStatSvc" <<
endmsg;
SmartIF< IChronoStatSvc > m_chronoSvc
std::string i_id(std::string const &evt, std::string_view caller)
Compute the id string to be used for the chrono entity.
SmartIF< IChronoStatSvc > & chronoSvc()
void after(std::string const &evt, std::string const &caller, EventContext const &, const StatusCode &sc) override
Default (catch-all) "after" Auditor hook.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
constexpr static const auto SUCCESS
StatusCode initialize() override
#define DECLARE_COMPONENT(type)
void before(std::string const &evt, std::string const &caller, EventContext const &) override
Default (catch-all) "before" Auditor hook.
constexpr static const auto FAILURE
Base class from which all concrete auditor classes should be derived.