Gaudi Framework, version v23r4

Home   Generated: Mon Sep 17 2012

ICounterSvc.cpp

Go to the documentation of this file.
00001 // $Id: ICounterSvc.cpp,v 1.2 2007/08/06 08:39:39 marcocle Exp $
00002 // ============================================================================
00003 // CVS tag $Name:  $, version $Revision: 1.2 $
00004 // ============================================================================
00005 // Include files
00006 // ============================================================================
00007 // STD & STL
00008 // ============================================================================
00009 #include <iostream>
00010 #include <vector>
00011 #include <stdexcept>
00012 // ============================================================================
00013 // GaudiKernel
00014 // ============================================================================
00015 #include "GaudiKernel/StatEntity.h"
00016 #include "GaudiKernel/ICounterSvc.h"
00017 // ============================================================================
00018 // Boots
00019 // ============================================================================
00020 #include "boost/format.hpp"
00021 // ============================================================================
00027 // ============================================================================
00028 // virtual and protected destructor
00029 // ============================================================================
00030 ICounterSvc::~ICounterSvc(){}
00031 // ============================================================================
00032 // Callback for printout with Counter pointers
00033 // ============================================================================
00034 StatusCode ICounterSvc::Printout::operator()
00035   ( MsgStream& log, const Counter* cnt )  const
00036 { return m_svc ? m_svc->defaultPrintout(log, cnt) : StatusCode::FAILURE ; }
00037 // ============================================================================
00038 // Standard initializing constructor
00039 // ============================================================================
00040 ICounterSvc::Printout::Printout(ICounterSvc* svc)
00041   : m_svc(svc)
00042 { if ( 0 != m_svc ) { m_svc->addRef() ; }   }
00043 // ============================================================================
00044 // destructor
00045 // ============================================================================
00046 ICounterSvc::Printout::~Printout()
00047 { if ( 0 != m_svc ) { m_svc->release() ; m_svc = 0 ; } }
00048 
00049 // ============================================================================
00050 // The END
00051 // ============================================================================
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Mon Sep 17 2012 13:49:33 for Gaudi Framework, version v23r4 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004