Go to the documentation of this file.
11 #ifndef GAUDIAUD_COMMONAUDITOR_H
12 #define GAUDIAUD_COMMONAUDITOR_H
47 virtual void i_before( CustomEventTypeRef
evt, std::string_view caller ) = 0;
58 return v.empty() || ( (
v[0] !=
"none" ) && ( find(
v.begin(),
v.end(),
evt ) !=
v.end() ) );
67 throw GaudiException(
"Property CustomEventTypes is deprecated, but both CustomEventTypes and EventTypes used",
77 this,
"EventTypes", {},
"list of event types to audit ([]=all, ['none']=none)" };
82 #endif // GAUDIAUD_COMMONAUDITOR_H
Base class with common functionalities shared by few auditor implementations.
PropertyBase base class allowing PropertyBase* collections to be "homogeneous".
const std::string name() const
property name
Gaudi::Property< std::vector< std::string > > m_types
void before(StandardEventType evt, const std::string &caller) override
virtual void i_before(CustomEventTypeRef evt, std::string_view caller)=0
catch all "before" method, implemented in the derived class
std::string documentation() const
property documentation
Gaudi::Property< std::vector< std::string > > m_customTypes
void deprecated_property(Gaudi::Details::PropertyBase &p)
const std::string & name() const override
void after(StandardEventType evt, const std::string &caller, const StatusCode &sc) override
const ValueType & value() const
bool i_auditEventType(std::string_view evt)
Check if we are requested to audit the passed event type.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Auditor(std::string name, ISvcLocator *svcloc)
Constructor.
constexpr static const auto FAILURE
virtual void i_after(CustomEventTypeRef evt, std::string_view caller, const StatusCode &sc)=0
catch all "after" method, implemented in the derived class
Implementation of property with value of concrete type.