| The Gaudi Framework v28r2-patches (bc4ad17a)

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

- File List
- File Members

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 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 }
NameAuditor::i_after
void i_after(CustomEventTypeRef evt, const std::string &caller, const StatusCode &sc) override
Print a message on "after".
Definition: NameAuditor.cpp:21
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:28
MsgStream.h
CommonMessagingBase::info
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
Definition: CommonMessaging.h:123
CommonAuditor
Base class with common functionalities shared by few auditor implementations.
Definition: CommonAuditor.h:5
std
STL namespace.
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition: PluginService.h:36
std::string
STL class.
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
NameAuditor::i_before
void i_before(CustomEventTypeRef evt, const std::string &caller) override
Print a message on "before".
Definition: NameAuditor.cpp:15
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:244
IOTest.evt
evt
Definition: IOTest.py:85