Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
CommonAuditor.cpp
Go to the documentation of this file.
1 #include "CommonAuditor.h"
3 
4 void CommonAuditor::before( StandardEventType evt, INamedInterface* caller ) {
5  if ( caller ) before( toStr( evt ), caller->name() );
6 }
7 void CommonAuditor::before( StandardEventType evt, const std::string& caller ) { before( toStr( evt ), caller ); }
8 void CommonAuditor::before( CustomEventTypeRef evt, INamedInterface* caller ) {
9  if ( caller ) before( evt, caller->name() );
10 }
11 void CommonAuditor::before( CustomEventTypeRef evt, const std::string& caller ) {
12  if ( i_auditEventType( evt ) ) i_before( evt, caller );
13 }
14 
15 void CommonAuditor::after( StandardEventType evt, INamedInterface* caller, const StatusCode& sc ) {
16  if ( caller ) after( toStr( evt ), caller->name(), sc );
17 }
18 void CommonAuditor::after( StandardEventType evt, const std::string& caller, const StatusCode& sc ) {
19  after( toStr( evt ), caller, sc );
20 }
21 void CommonAuditor::after( CustomEventTypeRef evt, INamedInterface* caller, const StatusCode& sc ) {
22  if ( caller ) after( evt, caller->name(), sc );
23 }
24 void CommonAuditor::after( CustomEventTypeRef evt, const std::string& caller, const StatusCode& sc ) {
25  if ( i_auditEventType( evt ) ) i_after( evt, caller, sc );
26 }
const char * toStr(IAuditor::StandardEventType e)
Simple mapping function from IAuditor::StandardEventType to string.
Definition: IAuditor.h:99
void before(StandardEventType evt, const std::string &caller) override
STL class.
bool i_auditEventType(const std::string &evt)
Check if we are requested to audit the passed event type.
Definition: CommonAuditor.h:42
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
IInterface compliant class extending IInterface with the name() method.
virtual void i_before(CustomEventTypeRef evt, const std::string &caller)=0
catch all "before" method, implemented in the derived class
void after(StandardEventType evt, const std::string &caller, const StatusCode &sc) override
virtual void i_after(CustomEventTypeRef evt, const std::string &caller, const StatusCode &sc)=0
catch all "after" method, implemented in the derived class
virtual const std::string & name() const =0
Retrieve the name of the instance.
evt
Definition: IOTest.py:94