| The Gaudi Framework v30r0 (c919700c)

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

- File List
- File Members

ICounterSvc.cpp
Go to the documentation of this file.
1 // ============================================================================
2 // Include files
3 // ============================================================================
4 // STD & STL
5 // ============================================================================
6 #include <iostream>
7 // ============================================================================
8 // GaudiKernel
9 // ============================================================================
10 #include "GaudiKernel/ICounterSvc.h"
11 #include "GaudiKernel/StatEntity.h"
12 // ============================================================================
18 // ============================================================================
19 // Callback for printout with Counter pointers
20 // ============================================================================
21 StatusCode ICounterSvc::Printout::operator()( MsgStream& log, const Counter* cnt ) const
22 {
23 return m_svc ? m_svc->defaultPrintout( log, cnt ) : StatusCode::FAILURE;
24 }
25 // ============================================================================
26 // Standard initializing constructor
27 // ============================================================================
28 ICounterSvc::Printout::Printout( ICounterSvc* svc ) : m_svc( svc ) {}
29
30 // ============================================================================
31 // The END
32 // ============================================================================
ICounterSvc::Printout::Printout
Printout()=delete
no default constructor
MsgStream
Definition of the MsgStream class used to transmit messages.
Definition: MsgStream.h:24
ICounterSvc
Create / access multi purpose counters.
Definition: ICounterSvc.h:75
ICounterSvc::Printout::m_svc
SmartIF< ICounterSvc > m_svc
Reference to counter service.
Definition: ICounterSvc.h:122
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
ICounterSvc::defaultPrintout
virtual StatusCode defaultPrintout(MsgStream &log, const Counter *pCounter) const =0
Default Printout for counters.
ICounterSvc::Printout::operator()
StatusCode operator()(MsgStream &log, const Counter *cnt) const
Callback for printout with Counter pointers.
Definition: ICounterSvc.cpp:21
StatEntity.h
StatusCode::FAILURE
Definition: StatusCode.h:29
StatEntity
The basic counter used for Monitoring purposes.
Definition: StatEntity.h:65
ICounterSvc.h
Gaudi.Configuration.log
log
Definition: Configuration.py:13