2 #include "GaudiKernel/MsgStream.h"
3 #include "GaudiKernel/ISvcLocator.h"
4 #include "GaudiKernel/IAuditor.h"
5 #include "GaudiKernel/INamedInterface.h"
6 #include "GaudiKernel/Auditor.h"
7 #include "GaudiKernel/TypeNameString.h"
8 #include "GaudiKernel/GaudiException.h"
29 sc = aud->sysInitialize();
106 if(it->isEnabled()) it->sysFinalize().
ignore();
118 if(it->isEnabled()) it->before(evt,obj);
125 if(it->isEnabled()) it->before(evt,name);
132 if(it->isEnabled()) it->before(evt,obj);
139 if(it->isEnabled()) it->before(evt,name);
147 if(it->isEnabled()) it->after(evt,obj,sc);
154 if(it->isEnabled()) it->after(evt,name,sc);
161 if(it->isEnabled()) it->after(evt,obj,sc);
168 if(it->isEnabled()) it->after(evt,name,sc);
173 #define OBSOLETION(name) \
174 void AuditorSvc::name(INamedInterface*) { \
175 throw GaudiException("The method IAuditor::" #name " is obsolete do not call it.", \
176 "AuditorSvc::" #name , StatusCode::FAILURE); \
187 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...
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
StatusCode finalize() override
auto begin(reverse_wrapper< T > &w)
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
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.
Helper class to parse a string of format "type/name".
StatusCode sysInitialize() override
auto end(reverse_wrapper< T > &w)
This class is used for returning status codes from appropriate routines.
#define DECLARE_COMPONENT(type)
StatusCode sysFinalize() override
Finalize Service.
SmartIF< IAuditor > findAuditor_(const std::string &)
IInterface compliant class extending IInterface with the name() method.
StatusCode finalize() override
Base class used to extend a class implementing other interfaces.
const std::string & type() const
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
StatusCode syncAuditors_()
The IAuditor is the interface implmented by the AlgAuditor base class.
StatusCode sysInitialize() override
Initialize Service.