16 m_pSvcLocator(pSvcLocator),
18 m_isInitialized(false),
76 catch(
const std::exception& Exception )
184 <<
" Exception with tag=" << Exception.
tag() <<
" is catched " <<
endmsg;
191 catch(
const std::exception& Exception )
196 <<
" Standard std::exception is caught " <<
endmsg;
200 << Exception.what() <<
endmsg;
207 <<
" UNKNOWN Exception is caught " <<
endmsg;
232 m_MS->setOutputLevel(
name(), level );
Definition of the MsgStream class used to transmit messages.
bool m_isEnabled
Auditor is enabled flag.
StatusCode setProperty(const Property &p)
set the property form another property
virtual StatusCode finalize()
void setOutputLevel(int level)
Set the output level for current auditor.
Define general base for Gaudi exception.
StatusCode service(const std::string &name, T *&svc, bool createIf=false) const
Access a service by name, creating it if it doesn't already exist.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
virtual const std::string & name() const
Retrieve the name of the instance.
virtual ~Auditor()
Destructor.
SmartIF< IMessageSvc > & msgSvc() const
The standard message service.
StandardEventType
Defines the standard (= used by the framework) auditable event types.
virtual void afterBeginRun(INamedInterface *)
virtual StatusCode setProperty(const Property &p)
Set a value of a property of an auditor.
bool isSuccess() const
Test for a status code of SUCCESS.
StatusCode setProperties()
Set the auditor's properties.
const CustomEventType & CustomEventTypeRef
Used in function calls for optimization purposes.
Property manager helper class.
virtual void afterFinalize(INamedInterface *)
virtual void beforeBeginRun(INamedInterface *)
std::string m_name
Auditor's name for identification.
SmartIF< IMessageSvc > m_MS
Message service.
virtual void before(StandardEventType, INamedInterface *)
The following methods are meant to be implemented by the child class...
Property * declareProperty(const std::string &name, T &property, const std::string &doc="none") const
Declare the named property.
bool m_isInitialized
Auditor has been initialized flag.
SmartIF< ISvcLocator > m_pSvcLocator
Pointer to service locator service.
Main interface for the JobOptions service.
Auditor(const std::string &name, ISvcLocator *svcloc)
Constructor.
bool isValid() const
Allow for check if smart pointer is valid.
This class is used for returning status codes from appropriate routines.
virtual void beforeExecute(INamedInterface *)
virtual StatusCode setMyProperties(const std::string &client, IProperty *me)=0
Override default properties of the calling client.
StatusCode getProperty(Property *p) const
get the property
virtual void afterExecute(INamedInterface *, const StatusCode &)
virtual StatusCode getProperty(Property *p) const
Get the value of a property.
virtual const std::string & tag() const
name tag for the exception, or exception type
StatusCode sysFinalize()
Finalization method invoked by the framework.
SmartIF< ISvcLocator > & serviceLocator() const
The standard service locator.
virtual void afterReinitialize(INamedInterface *)
const std::vector< Property * > & getProperties() const
get all properties
IInterface compliant class extending IInterface with the name() method.
Property base class allowing Property* collections to be "homogeneous".
virtual unsigned long release()=0
Release Interface instance.
virtual void beforeReinitialize(INamedInterface *)
StatusCode sysInitialize()
Initialization method invoked by the framework.
virtual void beforeFinalize(INamedInterface *)
PropertyMgr * m_PropertyMgr
For management of properties.
const std::vector< Property * > & getProperties() const
Get all properties.
virtual void afterInitialize(INamedInterface *)
virtual void beforeEndRun(INamedInterface *)
virtual void beforeInitialize(INamedInterface *)
virtual StatusCode initialize()
virtual void afterEndRun(INamedInterface *)
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
virtual void after(StandardEventType, INamedInterface *, const StatusCode &)
Audit the end of a standard "event".
virtual bool isEnabled() const
Tell if the auditor is enabled or not.
int m_outputLevel
Auditor output level.
bool m_isFinalized
Auditor has been finalized flag.