|
Gaudi Framework, version v23r4 |
| Home | Generated: Mon Sep 17 2012 |
00001 // $Id: GslErrorCount.h,v 1.2 2006/11/30 10:40:53 mato Exp $ 00002 // ============================================================================ 00003 #ifndef GAUDIGSL_GSLERRORCOUNT_H 00004 #define GAUDIGSL_GSLERRORCOUNT_H 1 00005 // Include files 00006 // from STL 00007 #include <string> 00008 #include <map> 00009 // from GaudiKernel 00010 #include "GaudiKernel/AlgTool.h" 00011 // from GaudiGSL 00012 #include "GaudiGSL/IGslErrorHandler.h" 00013 #include "GaudiGSL/GslError.h" 00014 // forward declaration 00015 00025 class GslErrorCount: public extends1<AlgTool, IGslErrorHandler> { 00026 public: 00027 00034 virtual StatusCode handle 00035 ( const GslError& error ) const ; 00036 00042 virtual StatusCode finalize () ; 00043 00049 GslErrorCount 00050 ( const std::string& type , 00051 const std::string& name , 00052 const IInterface* parent ); 00053 00055 virtual ~GslErrorCount( ); 00056 00057 private: 00058 00060 typedef std::map<GslError,unsigned int> Counters ; 00061 mutable Counters m_counters ; 00062 00063 00064 }; 00065 00066 // ============================================================================ 00067 // The END 00068 // ============================================================================ 00069 #endif // GAUDIGSL_GSLERRORCOUNT_H 00070 // ============================================================================