1 #ifndef GAUDI_IAUDITOR_H
2 #define GAUDI_IAUDITOR_H
5 #include "GaudiKernel/INamedInterface.h"
24 enum StandardEventType {
39 typedef std::string CustomEventType;
41 typedef const CustomEventType& CustomEventTypeRef;
46 virtual void before(StandardEventType,
const std::string&) = 0;
51 virtual void before(CustomEventTypeRef,
const std::string&) = 0;
64 virtual bool isEnabled()
const = 0;
107 static const std::array<const char*,IAuditor::StandardEventType::ReStart+1> s_tbl =
108 {{
"Initialize",
"ReInitialize",
"Execute",
109 "BeginRun",
"EndRun",
"Finalize",
110 "Start",
"Stop",
"ReStart" }};
111 return e <= IAuditor::StandardEventType::ReStart ? s_tbl[e] :
nullptr;
115 return s <<
toStr(e);
119 #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.
std::ostream & operator<<(std::ostream &s, IAuditor::StandardEventType e)
This class is used for returning status codes from appropriate routines.
IInterface compliant class extending IInterface with the name() method.
const std::string BeginRun
Processing of a new run has started.
const std::string EndRun
Processing of the last run has finished.
The IAuditor is the interface implmented by the AlgAuditor base class.