Gaudi Framework, version v23r5
Home
Generated: Wed Nov 28 2012
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
GaudiAud
src
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
#include "
GaudiKernel/AudFactory.h
"
9
10
DECLARE_AUDITOR_FACTORY
(
NameAuditor
)
11
12
NameAuditor
::
NameAuditor
(const
std
::
string
& name,
ISvcLocator
* pSvcLocator):
13
CommonAuditor
(name, pSvcLocator) {
14
}
15
16
void
NameAuditor::i_before
(CustomEventTypeRef
evt
,
const
std::string
& caller)
17
{
18
MsgStream
log
(
msgSvc
(),
name
() );
19
log <<
MSG::INFO
<<
"About to Enter "
<< caller <<
" with auditor trigger "
20
<< evt <<
endmsg
;
21
}
22
23
void
NameAuditor::i_after
(CustomEventTypeRef
evt
,
const
std::string
& caller,
const
StatusCode
&)
24
{
25
MsgStream
log
(
msgSvc
(),
name
() );
26
log <<
MSG::INFO
<<
"Just Exited "
<< caller <<
" with auditor trigger "
27
<< evt <<
endmsg
;
28
}
Generated at Wed Nov 28 2012 12:17:10 for Gaudi Framework, version v23r5 by
Doxygen
version 1.8.2 written by
Dimitri van Heesch
, © 1997-2004