The Gaudi Framework
v26r1
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
ICounterSvc.cpp
Go to the documentation of this file.
1
// $Id: ICounterSvc.cpp,v 1.2 2007/08/06 08:39:39 marcocle Exp $
2
// ============================================================================
3
// CVS tag $Name: $, version $Revision: 1.2 $
4
// ============================================================================
5
// Include files
6
// ============================================================================
7
// STD & STL
8
// ============================================================================
9
#include <iostream>
10
#include <vector>
11
#include <stdexcept>
12
// ============================================================================
13
// GaudiKernel
14
// ============================================================================
15
#include "GaudiKernel/StatEntity.h"
16
#include "GaudiKernel/ICounterSvc.h"
17
// ============================================================================
18
// Boots
19
// ============================================================================
20
#include "boost/format.hpp"
21
// ============================================================================
27
// ============================================================================
28
// virtual and protected destructor
29
// ============================================================================
30
ICounterSvc::~ICounterSvc
(){}
31
// ============================================================================
32
// Callback for printout with Counter pointers
33
// ============================================================================
34
StatusCode
ICounterSvc::Printout::operator()
35
(
MsgStream
&
log
,
const
Counter
* cnt )
const
36
{
return
m_svc ? m_svc->defaultPrintout(log, cnt) :
StatusCode::FAILURE
; }
37
// ============================================================================
38
// Standard initializing constructor
39
// ============================================================================
40
ICounterSvc::Printout::Printout
(
ICounterSvc
* svc)
41
: m_svc(svc)
42
{
if
( 0 !=
m_svc
) {
m_svc
->
addRef
() ; } }
43
// ============================================================================
44
// destructor
45
// ============================================================================
46
ICounterSvc::Printout::~Printout
()
47
{
if
( 0 != m_svc ) { m_svc->release() ; m_svc = 0 ; } }
48
49
// ============================================================================
50
// The END
51
// ============================================================================
GaudiKernel
src
Lib
ICounterSvc.cpp
Generated on Mon Feb 16 2015 11:56:56 for The Gaudi Framework by
1.8.2