The Gaudi Framework  v30r3 (a5ef0a68)
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 void NameAuditor::i_before( CustomEventTypeRef evt, const std::string& caller )
12 {
13  info() << "About to Enter " << caller << " with auditor trigger " << evt << endmsg;
14 }
15 
16 void NameAuditor::i_after( CustomEventTypeRef evt, const std::string& caller, const StatusCode& )
17 {
18  info() << "Just Exited " << caller << " with auditor trigger " << evt << endmsg;
19 }
void i_after(CustomEventTypeRef evt, const std::string &caller, const StatusCode &sc) override
Print a message on "after".
Definition: NameAuditor.cpp:16
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
STL namespace.
class MergingTransformer< Out(const vector_of_const_< In > void
STL class.
#define DECLARE_COMPONENT(type)
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:51
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