1 #ifndef GAUDIKERNEL_AUDITOR_H 2 #define GAUDIKERNEL_AUDITOR_H 62 void before( StandardEventType,
const std::string& )
override;
65 void before( CustomEventTypeRef,
const std::string& )
override;
98 bool isEnabled()
const override;
111 auto ptr = serviceLocator()->service<T>(
name, createIf );
121 template <
class T = IService>
124 return serviceLocator()->service<T>(
name, createIf );
142 bool m_isInitialized =
false;
143 bool m_isFinalized =
false;
146 #ifndef GAUDI_NEW_PLUGIN_SERVICE 152 template <
typename S,
typename... Args>
155 return new T( std::forward<Args>(
args )... );
161 #define DECLARE_AUDITOR_FACTORY( x ) DECLARE_FACTORY_WITH_CREATOR( x, AudFactory<x>, Auditor::Factory ) 162 #define DECLARE_NAMESPACE_AUDITOR_FACTORY( n, x ) DECLARE_AUDITOR_FACTORY( n::x ) 167 #define DECLARE_AUDITOR_FACTORY( x ) DECLARE_COMPONENT( x ) 168 #define DECLARE_NAMESPACE_AUDITOR_FACTORY( n, x ) DECLARE_COMPONENT( n::x ) 172 #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.
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.
Base class from which all concrete algorithm classes should be derived.
IInterface compliant class extending IInterface with the name() method.
Class wrapping the signature for a factory with any number of arguments.
Helper class to implement the IProperty interface.
static S::ReturnType create(Args &&...args)
SmartIF< T > service(const std::string &name, bool createIf=false) const
Base class from which all concrete auditor classes should be derived.