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  info() << "About to Enter " << caller << " with auditor trigger "
18  << evt << endmsg;
19 }
20 
21 void NameAuditor::i_after(CustomEventTypeRef evt, const std::string& caller, const StatusCode&)
22 {
23  info() << "Just Exited " << caller << " with auditor trigger "
24  << evt << endmsg;
25 }
void i_after(CustomEventTypeRef evt, const std::string &caller, const StatusCode &sc) override
Print a message on "after".
Definition: NameAuditor.cpp:21
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:5
STL namespace.
#define DECLARE_COMPONENT(type)
Definition: PluginService.h:36
STL class.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
void i_before(CustomEventTypeRef evt, const std::string &caller) override
Print a message on "before".
Definition: NameAuditor.cpp:15
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:244
evt
Definition: IOTest.py:85