Gaudi Framework, version v25r0

Home   Generated: Mon Feb 17 2014
 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 
8 
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 }

Generated at Mon Feb 17 2014 14:37:39 for Gaudi Framework, version v25r0 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004