| The Gaudi Framework v32r1 (f65d50dc)

CommonAuditor.cpp
Go to the documentation of this file.
1 #include "CommonAuditor.h"
2 #include "GaudiKernel/GaudiException.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 }
toStr
const char * toStr(IAuditor::StandardEventType e)
Simple mapping function from IAuditor::StandardEventType to string.
Definition: IAuditor.h:99
CommonAuditor::before
void before(StandardEventType evt, const std::string &caller) override
Definition: CommonAuditor.cpp:7
std::string
STL class.
INamedInterface::name
virtual const std::string & name() const =0
Retrieve the name of the instance.
CommonAuditor::i_auditEventType
bool i_auditEventType(const std::string &evt)
Check if we are requested to audit the passed event type.
Definition: CommonAuditor.h:42
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
GaudiException.h
INamedInterface
IInterface compliant class extending IInterface with the name() method.
Definition: INamedInterface.h:15
CommonAuditor::i_before
virtual void i_before(CustomEventTypeRef evt, const std::string &caller)=0
catch all "before" method, implemented in the derived class
CommonAuditor::after
void after(StandardEventType evt, const std::string &caller, const StatusCode &sc) override
Definition: CommonAuditor.cpp:18
CommonAuditor::i_after
virtual void i_after(CustomEventTypeRef evt, const std::string &caller, const StatusCode &sc)=0
catch all "after" method, implemented in the derived class
CommonAuditor.h
IOTest.evt
evt
Definition: IOTest.py:94