Go to the documentation of this file.
11 #ifndef GAUDI_IAUDITOR_H
12 #define GAUDI_IAUDITOR_H
38 {
"Initialize",
"ReInitialize",
"Execute",
"Finalize",
"Start",
"Stop",
"ReStart" } };
39 return e <= IAuditor::StandardEventType::ReStart ? s_tbl[e] :
nullptr;
101 #endif // GAUDIKERNEL_IAUDITOR_H
virtual StatusCode sysFinalize()=0
Used by AuditorSvc.
friend const char * toStr(IAuditor::StandardEventType e)
Simple mapping function from IAuditor::StandardEventType to string.
virtual void after(CustomEventTypeRef, const std::string &, const StatusCode &sc=StatusCode::SUCCESS)=0
Audit the end of a custom "event" for callers that do not implement INamedInterface.
virtual void beforeExecute(INamedInterface *)=0
virtual void afterExecute(INamedInterface *, const StatusCode &)=0
virtual StatusCode sysInitialize()=0
Used by AuditorSvc.
virtual void before(CustomEventTypeRef, const std::string &)=0
Audit the start of a custom "event" for callers that do not implement INamedInterface.
virtual void before(CustomEventTypeRef, INamedInterface *)=0
Audit the start of a custom "event".
virtual void before(StandardEventType, INamedInterface *)=0
Audit the start of a standard "event".
virtual void beforeFinalize(INamedInterface *)=0
virtual void afterFinalize(INamedInterface *)=0
virtual void after(StandardEventType, INamedInterface *, const StatusCode &sc=StatusCode::SUCCESS)=0
Audit the end of a standard "event".
const CustomEventType & CustomEventTypeRef
Used in function calls for optimization purposes.
virtual void beforeInitialize(INamedInterface *)=0
virtual void before(StandardEventType, const std::string &)=0
Audit the start of a standard "event" for callers that do not implement INamedInterface.
virtual void afterReinitialize(INamedInterface *)=0
virtual void beforeReinitialize(INamedInterface *)=0
DeclareInterfaceID(IAuditor, 3, 0)
InterfaceID.
virtual void afterInitialize(INamedInterface *)=0
std::string CustomEventType
Type used to allow users to specify a custom event to be audit.
constexpr static const auto SUCCESS
virtual bool isEnabled() const =0
Tell if the auditor is enabled or not.
StandardEventType
Defines the standard (= used by the framework) auditable event types.
virtual void after(StandardEventType, const std::string &, const StatusCode &sc=StatusCode::SUCCESS)=0
Audit the end of a standard "event" for callers that do not implement INamedInterface.
friend std::ostream & operator<<(std::ostream &s, IAuditor::StandardEventType e)
virtual void after(CustomEventTypeRef, INamedInterface *, const StatusCode &sc=StatusCode::SUCCESS)=0
Audit the end of a custom "event".