| The Gaudi Framework v32r1 (f65d50dc)

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 void NameAuditor::i_before( CustomEventTypeRef evt, const std::string& caller ) {
12 info() << "About to Enter " << caller << " with auditor trigger " << evt << endmsg;
13 }
14
15 void NameAuditor::i_after( CustomEventTypeRef evt, const std::string& caller, const StatusCode& ) {
16 info() << "Just Exited " << caller << " with auditor trigger " << evt << endmsg;
17 }
NameAuditor::i_after
void i_after(CustomEventTypeRef evt, const std::string &caller, const StatusCode &sc) override
Print a message on "after".
Definition: NameAuditor.cpp:15
MsgStream.h
std
STL namespace.
CommonMessagingBase::info
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
Definition: CommonMessaging.h:104
std::string
STL class.
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition: PluginServiceV1.h:46
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
NameAuditor
Prints the name of each algorithm before entering the algorithm and after leaving it.
Definition: NameAuditor.h:11
NameAuditor.h
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:192
IOTest.evt
evt
Definition: IOTest.py:94