29 sc = aud->sysInitialize();
70 error() <<
"Error constructing Auditor " << it <<
endmsg;
105 if(it->isEnabled()) it->sysFinalize().
ignore();
117 if(it->isEnabled()) it->before(evt,obj);
124 if(it->isEnabled()) it->before(evt,name);
131 if(it->isEnabled()) it->before(evt,obj);
138 if(it->isEnabled()) it->before(evt,name);
146 if(it->isEnabled()) it->after(evt,obj,sc);
153 if(it->isEnabled()) it->after(evt,name,sc);
160 if(it->isEnabled()) it->after(evt,obj,sc);
167 if(it->isEnabled()) it->after(evt,name,sc);
172 #define OBSOLETION(name) \
173 void AuditorSvc::name(INamedInterface*) { \
174 throw GaudiException("The method IAuditor::" #name " is obsolete do not call it.", \
175 "AuditorSvc::" #name , StatusCode::FAILURE); \
186 throw GaudiException(
"The method afterExecute is obsolete do not call it.",
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.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
StatusCode finalize() override
void after(StandardEventType, INamedInterface *, const StatusCode &) override
StatusCode sysFinalize() override
AuditorSvc(const std::string &name, ISvcLocator *svc)
bool isFailure() const
Test for a status code of FAILURE.
std::vector< SmartIF< IAuditor > > m_pAudList
#define DECLARE_COMPONENT(type)
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.
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
Helper class to parse a string of format "type/name".
StatusCode sysInitialize() override
This class is used for returning status codes from appropriate routines.
StatusCode sysFinalize() override
Finalize Service.
SmartIF< IAuditor > findAuditor_(const std::string &)
IInterface compliant class extending IInterface with the name() method.
StatusCode finalize() override
const std::string & type() const
MsgStream & msgStream() const
Return an uninitialized MsgStream.
IAuditor * getAuditor(const std::string &name) override
SmartIF< IAuditor > newAuditor_(MsgStream &, const std::string &)
std::vector< std::string > m_audNameList
const std::string & name() const
Property * declareProperty(const std::string &name, T &property, const std::string &doc="none") const
Declare the named property.
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.
StatusCode sysInitialize() override
Initialize Service.