| The Gaudi Framework v28r2-patches (bc4ad17a)

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

- File List
- File Members

GslErrorCount.h
Go to the documentation of this file.
1 #ifndef GAUDIGSL_GSLERRORCOUNT_H
2 #define GAUDIGSL_GSLERRORCOUNT_H 1
3 // Include files
4 // from STL
5 #include <string>
6 #include <map>
7 // from GaudiKernel
8 #include "GaudiKernel/AlgTool.h"
9 // from GaudiGSL
10 #include "GaudiGSL/IGslErrorHandler.h"
11 #include "GaudiGSL/GslError.h"
12 // forward declaration
13
23 class GslErrorCount: public extends<AlgTool,
24 IGslErrorHandler> {
25 public:
26
33 StatusCode handle( const GslError& error ) const override ;
34
40 StatusCode finalize () override ;
41
47 GslErrorCount
48 ( const std::string& type ,
49 const std::string& name ,
50 const IInterface* parent );
51
53 ~GslErrorCount( ) override = default;
54
55 private:
56
58 typedef std::map<GslError,unsigned int> Counters ;
59 mutable Counters m_counters ;
60
61
62 };
63
64 // ============================================================================
65 // The END
66 // ============================================================================
67 #endif // GAUDIGSL_GSLERRORCOUNT_H
68 // ============================================================================
GslErrorCount::handle
StatusCode handle(const GslError &error) const override
handle the GSL error
Definition: GslErrorCount.cpp:76
GslError
Helper class to represent GSL errors.
Definition: GslError.h:15
AlgTool.h
IGslErrorHandler.h
std::map< GslError, unsigned int >
GslErrorCount::~GslErrorCount
~GslErrorCount() override=default
destructor (protected and virtual)
std::string
STL class.
CommonMessagingBase::error
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
Definition: CommonMessaging.h:117
GslError.h
GslErrorCount::GslErrorCount
GslErrorCount(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition: GslErrorCount.cpp:29
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
GslErrorCount::Counters
std::map< GslError, unsigned int > Counters
container of error counters
Definition: GslErrorCount.h:58
IInterface
Definition of the basic interface.
Definition: IInterface.h:234
AlgTool::name
const std::string & name() const override
Retrieve full identifying name of the concrete tool object.
Definition: AlgTool.cpp:63
extends
Base class used to extend a class implementing other interfaces.
Definition: extends.h:10
GslErrorCount
Concrete GSL error handler It is just counts number of GSL errors.
Definition: GslErrorCount.h:23
AlgTool::parent
const IInterface * parent() const override
Retrieve parent of the sub-algtool.
Definition: AlgTool.cpp:77
GslErrorCount::m_counters
Counters m_counters
Definition: GslErrorCount.h:59
GslErrorCount::finalize
StatusCode finalize() override
standard finalization of Tool
Definition: GslErrorCount.cpp:43
AlgTool::type
const std::string & type() const override
Retrieve type (concrete class) of the sub-algtool.
Definition: AlgTool.cpp:70