1 #ifndef GAUDIKERNEL_AUDITOR_H 2 #define GAUDIKERNEL_AUDITOR_H 36 using Factory = Gaudi::PluginService::Factory<IAuditor*( const std::string&, ISvcLocator* )>;
58 void before( StandardEventType,
const std::string& )
override;
61 void before( CustomEventTypeRef,
const std::string& )
override;
94 bool isEnabled()
const override;
106 auto ptr = serviceLocator()->service<T>(
name, createIf );
116 template <
class T = IService>
118 return serviceLocator()->service<T>(
name, createIf );
139 bool m_isInitialized =
false;
140 bool m_isFinalized =
false;
143 #endif // GAUDIKERNEL_AUDITOR_H
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...
Implementation of property with value of concrete type.
constexpr static const auto SUCCESS
std::string m_name
Auditor's name for identification.
SmartIF< ISvcLocator > m_pSvcLocator
Pointer to service locator service.
Gaudi::PluginService::Factory< IAuditor *(const std::string &, ISvcLocator *)> Factory
General service interface definition.
This class is used for returning status codes from appropriate routines.
PropertyHolder & operator=(const PropertyHolder &)=delete
The IMessage is the interface implemented by the message service.
PropertyBase base class allowing PropertyBase* collections to be "homogeneous".
IInterface compliant class extending IInterface with the name() method.
Helper class to implement the IProperty interface.
constexpr static const auto FAILURE
SmartIF< T > service(const std::string &name, bool createIf=false) const
Base class from which all concrete auditor classes should be derived.