29 sc = aud->sysInitialize();
45 [&](
const IAuditor* i ) {
return i->
name() == item_name; } );
69 error() <<
"Error constructing Auditor " << it <<
endmsg;
94 if ( it->isEnabled() ) it->sysFinalize().
ignore();
106 if ( it->isEnabled() ) it->before(
evt, obj );
113 if ( it->isEnabled() ) it->before(
evt,
name );
120 if ( it->isEnabled() ) it->before(
evt, obj );
127 if ( it->isEnabled() ) it->before(
evt,
name );
135 if ( it->isEnabled() ) it->after(
evt, obj, sc );
142 if ( it->isEnabled() ) it->after(
evt,
name, sc );
149 if ( it->isEnabled() ) it->after(
evt, obj, sc );
156 if ( it->isEnabled() ) it->after(
evt,
name, sc );
161 #define OBSOLETION( name ) \ 162 void AuditorSvc::name( INamedInterface* ) { \ 163 throw GaudiException( "The method IAuditor::" #name " is obsolete do not call it.", "AuditorSvc::" #name, \ 164 StatusCode::FAILURE ); \ 175 throw GaudiException(
"The method afterExecute is obsolete do not call it.",
"AuditorSvc::afterExecute",
StatusCode initialize() override
Definition of the MsgStream class used to transmit messages.
StatusCode initialize() override
Small smart pointer class with automatic reference counting for IInterface.
Define general base for Gaudi exception.
StatusCode finalize() override
void after(StandardEventType, INamedInterface *, const StatusCode &) override
constexpr static const auto SUCCESS
StatusCode sysFinalize() override
const std::string & type() const
std::vector< SmartIF< IAuditor > > m_pAudList
void before(StandardEventType, INamedInterface *) override
The following methods are meant to be implemented by the child class...
bool isEnabled() const override
virtual const std::string & name() const =0
Retrieve the name of the instance.
#define DECLARE_COMPONENT(type)
const std::string & name() const override
Retrieve name of the service.
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
Helper class to parse a string of format "type/name".
StatusCode sysInitialize() override
const std::string & name() const
This class is used for returning status codes from appropriate routines.
MsgStream & msgStream() const
Return an uninitialized MsgStream.
StatusCode sysFinalize() override
Finalize Service.
SmartIF< IAuditor > findAuditor_(const std::string &)
IInterface compliant class extending IInterface with the name() method.
const StatusCode & ignore() const
Ignore/check StatusCode.
StatusCode finalize() override
IAuditor * getAuditor(const std::string &name) override
constexpr static const auto FAILURE
SmartIF< IAuditor > newAuditor_(MsgStream &, const std::string &)
StatusCode syncAuditors_()
The IAuditor is the interface implmented by the AlgAuditor base class.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Gaudi::Property< std::vector< std::string > > m_audNameList
StatusCode sysInitialize() override
Initialize Service.