39 sc = aud->sysInitialize();
55 [&](
const IAuditor* i ) {
return i->
name() == item_name; } );
79 error() <<
"Error constructing Auditor " << it <<
endmsg;
104 if ( it->isEnabled() ) it->sysFinalize().
ignore();
116 if ( it->isEnabled() ) it->before(
evt, obj );
123 if ( it->isEnabled() ) it->before(
evt,
name );
130 if ( it->isEnabled() ) it->before(
evt, obj );
137 if ( it->isEnabled() ) it->before(
evt,
name );
145 if ( it->isEnabled() ) it->after(
evt, obj, sc );
152 if ( it->isEnabled() ) it->after(
evt,
name, sc );
159 if ( it->isEnabled() ) it->after(
evt, obj, sc );
166 if ( it->isEnabled() ) it->after(
evt,
name, sc );
171 #define OBSOLETION( name ) \ 172 void AuditorSvc::name( INamedInterface* ) { \ 173 throw GaudiException( "The method IAuditor::" #name " is obsolete do not call it.", "AuditorSvc::" #name, \ 174 StatusCode::FAILURE ); \ 185 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.