5 "List of event types to audit ([]=all, ['none']=none)");
12 log <<
MSG::WARNING <<
"Property CustomEventTypes is deprecated, use EventTypes instead" <<
endmsg;
Definition of the MsgStream class used to transmit messages.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
SmartIF< IMessageSvc > & msgSvc() const
The standard message service.
virtual Property & declareUpdateHandler(std::function< void(Property &)> fun)
set new callback for update
virtual void before(StandardEventType evt, const std::string &caller)
bool setValue(const TYPE &value) override
implementation of PropertyWithValue::setValue
virtual const std::string & name() const =0
Retrieve the name of the instance.
bool i_auditEventType(const std::string &evt)
Check if we are requested to audit the passed event type.
Property * declareProperty(const std::string &name, T &property, const std::string &doc="none") const
Declare the named property.
const char * toStr(IAuditor::StandardEventType e)
Simple mapping function from IAuditor::StandardEventType to string.
void i_updateCustomTypes(Property &)
Update handler for the obsolete property CustomEventTypes.
This class is used for returning status codes from appropriate routines.
StringArrayProperty m_customTypes
const TYPE & value() const
explicit conversion
IInterface compliant class extending IInterface with the name() method.
Property base class allowing Property* collections to be "homogeneous".
const std::string & name() const override
CommonAuditor(const std::string &name, ISvcLocator *svcloc)
Constructor.
virtual void after(StandardEventType evt, const std::string &caller, const StatusCode &sc)
virtual void i_before(CustomEventTypeRef evt, const std::string &caller)=0
catch all "before" method, implemented in the derived class
StringArrayProperty m_types
virtual void i_after(CustomEventTypeRef evt, const std::string &caller, const StatusCode &sc)=0
catch all "after" method, implemented in the derived class
Base class from which all concrete auditor classes should be derived.