Loading [MathJax]/extensions/tex2jax.js
Go to the documentation of this file.
82 bool isEnabled()
const override {
return m_isEnabled; }
93 [[deprecated(
"use service<T>(name, createIf) -> SmartIF<T>" )]]
StatusCode service( std::string_view
name, T*& svc,
94 bool createIf =
false )
const {
95 auto ptr = serviceLocator()->service<T>(
name, createIf );
105 template <
class T = IService>
107 return serviceLocator()->service<T>(
name, createIf );
121 bool m_isInitialized =
false;
122 bool m_isFinalized =
false;
void after(StandardEventType, const std::string &, const StatusCode &) override
SmartIF< ISvcLocator > & serviceLocator() const override
The standard service locator.
PropertyBase base class allowing PropertyBase* collections to be "homogeneous".
virtual StatusCode initialize()
void before(StandardEventType, const std::string &) override
void after(CustomEventTypeRef, const std::string &, const StatusCode &) override
void before(CustomEventTypeRef, INamedInterface *) override
std::string m_name
Auditor's name for identification.
void before(StandardEventType, INamedInterface *) override
The following methods are meant to be implemented by the child class...
Helper class to implement the IProperty interface.
SmartIF< ISvcLocator > m_pSvcLocator
Pointer to service locator service.
Gaudi::PluginService::Factory< IAuditor *(const std::string &, ISvcLocator *)> Factory
void after(CustomEventTypeRef, INamedInterface *, const StatusCode &) override
void after(StandardEventType, INamedInterface *, const StatusCode &) override
Auditor(const Auditor &a)=delete
virtual StatusCode finalize()
SmartIF< T > service(std::string_view name, bool createIf=false) const
bool isEnabled() const override
constexpr static const auto SUCCESS
void before(CustomEventTypeRef, const std::string &) override
Auditor & operator=(const Auditor &rhs)=delete
constexpr static const auto FAILURE
const std::string & name() const override
StatusCode service(std::string_view name, T *&svc, bool createIf=false) const
Access a service by name, creating it if it doesn't already exist.