1 #ifndef GAUDI_IAUDITOR_H 2 #define GAUDI_IAUDITOR_H 42 virtual void before( CustomEventTypeRef,
const std::string& ) = 0;
55 virtual void after( CustomEventTypeRef,
const std::string&,
59 virtual bool isEnabled()
const = 0;
103 {
"Initialize",
"ReInitialize",
"Execute",
"BeginRun",
"EndRun",
"Finalize",
"Start",
"Stop",
"ReStart"}};
104 return e <= IAuditor::StandardEventType::ReStart ? s_tbl[e] :
nullptr;
109 #endif // GAUDIKERNEL_IAUDITOR_H const char * toStr(IAuditor::StandardEventType e)
Simple mapping function from IAuditor::StandardEventType to string.
StandardEventType
Defines the standard (= used by the framework) auditable event types.
DeclareInterfaceID(INamedInterface, 1, 0)
InterfaceID.
const CustomEventType & CustomEventTypeRef
Used in function calls for optimization purposes.
std::ostream & operator<<(std::ostream &s, IAuditor::StandardEventType e)
std::string CustomEventType
Type used to allow users to specify a custom event to be audit.
This class is used for returning status codes from appropriate routines.
constexpr static const auto SUCCESS
IInterface compliant class extending IInterface with the name() method.
The IAuditor is the interface implmented by the AlgAuditor base class.