14 m_pSvcLocator(pSvcLocator),
17 m_isInitialized(
false),
22 declareProperty(
"OutputLevel", m_outputLevel =
MSG::NIL)->declareUpdateHandler([
this](
Property&) { this->updateMsgStreamOutputLevel(this->m_outputLevel); } );
23 declareProperty(
"Enable", m_isEnabled =
true);
169 <<
" Exception with tag=" << Exception.
tag() <<
" is catched " <<
endmsg;
181 <<
" Standard std::exception is caught " <<
endmsg;
192 <<
" UNKNOWN Exception is caught " <<
endmsg;
218 auto jos = service<IJobOptionsSvc>(
"JobOptionsSvc");
220 jos->setMyProperties(
name(),
this ).ignore();
StatusCode sysInitialize() override
Initialization method invoked by the framework.
Definition of the MsgStream class used to transmit messages.
bool m_isEnabled
Auditor is enabled flag.
virtual StatusCode finalize()
bool hasProperty(const std::string &name) const override
Implementation of IProperty::hasProperty.
Define general base for Gaudi exception.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
void beforeInitialize(INamedInterface *) override
StatusCode getProperty(Property *p) const override
Get the value of a property.
StatusCode setProperty(const Property &p) override
set the property form another property
bool isSuccess() const
Test for a status code of SUCCESS.
StatusCode setProperties()
Set the auditor's properties.
void beforeBeginRun(INamedInterface *) override
StatusCode sysFinalize() override
Finalization method invoked by the framework.
void afterEndRun(INamedInterface *) override
Property manager helper class.
std::string m_name
Auditor's name for identification.
StatusCode getProperty(Property *p) const override
get the property
void afterBeginRun(INamedInterface *) override
bool m_isInitialized
Auditor has been initialized flag.
void beforeExecute(INamedInterface *) override
SmartIF< ISvcLocator > m_pSvcLocator
Pointer to service locator service.
Auditor(const std::string &name, ISvcLocator *svcloc)
Constructor.
void afterExecute(INamedInterface *, const StatusCode &) override
void updateMsgStreamOutputLevel(int level)
Update the output level of the cached MsgStream.
This class is used for returning status codes from appropriate routines.
void beforeReinitialize(INamedInterface *) override
const std::vector< Property * > & getProperties() const override
get all properties
void after(StandardEventType, INamedInterface *, const StatusCode &) override
virtual const std::string & tag() const
name tag for the exception, or exception type
const std::vector< Property * > & getProperties() const override
Get all properties.
SmartIF< ISvcLocator > & serviceLocator() const
The standard service locator.
void afterInitialize(INamedInterface *) override
StatusCode setProperty(const Property &p) override
Set a value of a property of an auditor.
IInterface compliant class extending IInterface with the name() method.
Property base class allowing Property* collections to be "homogeneous".
bool isEnabled() const override
SmartIF< PropertyMgr > m_PropertyMgr
For management of properties.
const std::string & name() const override
bool hasProperty(const std::string &name) const override
Return true if we have a property with the given name.
SmartIF< IMessageSvc > & msgSvc() const
The standard message service.
void afterFinalize(INamedInterface *) override
void beforeFinalize(INamedInterface *) override
virtual StatusCode initialize()
void before(StandardEventType, INamedInterface *) override
The following methods are meant to be implemented by the child class...
void beforeEndRun(INamedInterface *) override
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
int m_outputLevel
Auditor output level.
void afterReinitialize(INamedInterface *) override
bool m_isFinalized
Auditor has been finalized flag.