| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
7 #include "GaudiKernel/MsgStream.h"
8
9 DECLARE_COMPONENT(NameAuditor)
10
11 NameAuditor::NameAuditor(const std::string& name, ISvcLocator* pSvcLocator):
12 CommonAuditor(name, pSvcLocator) {
13 }
14
15 void NameAuditor::i_before(CustomEventTypeRef evt, const std::string& caller)
16 {
17 MsgStream log( msgSvc(), name() );
18 log << MSG::INFO << "About to Enter " << caller << " with auditor trigger "
19 << evt << endmsg;
20 }
21
22 void NameAuditor::i_after(CustomEventTypeRef evt, const std::string& caller, const StatusCode&)
23 {
24 MsgStream log( msgSvc(), name() );
25 log << MSG::INFO << "Just Exited " << caller << " with auditor trigger "
26 << evt << endmsg;
27 }