| The Gaudi Framework v29r1 (5cd95fa2)

- 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 ) : CommonAuditor( name, pSvcLocator ) {}
12
13 void NameAuditor::i_before( CustomEventTypeRef evt, const std::string& caller )
14 {
15 info() << "About to Enter " << caller << " with auditor trigger " << evt << endmsg;
16 }
17
18 void NameAuditor::i_after( CustomEventTypeRef evt, const std::string& caller, const StatusCode& )
19 {
20 info() << "Just Exited " << caller << " with auditor trigger " << evt << endmsg;
21 }
NameAuditor::i_after
void i_after(CustomEventTypeRef evt, const std::string &caller, const StatusCode &sc) override
Print a message on "after".
Definition: NameAuditor.cpp:18
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:32
MsgStream.h
CommonMessagingBase::info
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
Definition: CommonMessaging.h:112
CommonAuditor
Base class with common functionalities shared by few auditor implementations.
Definition: CommonAuditor.h:8
std
STL namespace.
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition: PluginService.h:33
std::string
STL class.
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:28
NameAuditor::i_before
void i_before(CustomEventTypeRef evt, const std::string &caller) override
Print a message on "before".
Definition: NameAuditor.cpp:13
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:209
IOTest.evt
evt
Definition: IOTest.py:96