The Gaudi Framework  v29r0 (ff2e7097)
NameAuditor.cpp
Go to the documentation of this file.
1 // NameAuditor:
2 // An auditor that prints the name of each algorithm method before
3 // and after it is called///
4 
5 #include "NameAuditor.h"
6 
8 
10 
11 NameAuditor::NameAuditor( const std::string& name, ISvcLocator* pSvcLocator ) : CommonAuditor( name, pSvcLocator ) {}
12 
13 void NameAuditor::i_before( CustomEventTypeRef evt, const std::string& caller )
14 {
15  info() << "About to Enter " << caller << " with auditor trigger " << evt << endmsg;
16 }
17 
18 void NameAuditor::i_after( CustomEventTypeRef evt, const std::string& caller, const StatusCode& )
19 {
20  info() << "Just Exited " << caller << " with auditor trigger " << evt << endmsg;
21 }
void i_after(CustomEventTypeRef evt, const std::string &caller, const StatusCode &sc) override
Print a message on "after".
Definition: NameAuditor.cpp:18
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
Base class with common functionalities shared by few auditor implementations.
Definition: CommonAuditor.h:8
STL namespace.
#define DECLARE_COMPONENT(type)
Definition: PluginService.h:33
STL class.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:28
void i_before(CustomEventTypeRef evt, const std::string &caller) override
Print a message on "before".
Definition: NameAuditor.cpp:13
Prints the name of each algorithm before entering the algorithm and after leaving it...
Definition: NameAuditor.h:11
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:209
evt
Definition: IOTest.py:96