The Gaudi Framework
v25r5
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
GslErrorPrint.cpp
Go to the documentation of this file.
1
// $Id: GslErrorPrint.cpp,v 1.2 2006/01/10 20:00:05 hmd Exp $
2
// ============================================================================
3
// Include files
4
// from Gaudi
5
#include "
GaudiKernel/ToolFactory.h
"
6
#include "
GaudiKernel/MsgStream.h
"
7
#include "
GaudiKernel/IChronoStatSvc.h
"
8
#include "
GaudiKernel/Stat.h
"
9
// local
10
#include "
GslErrorPrint.h
"
11
12
// ============================================================================
20
// ============================================================================
21
DECLARE_COMPONENT
(
GslErrorPrint
)
22
// ============================================================================
23
24
// ============================================================================
30
// ============================================================================
31
GslErrorPrint
::
GslErrorPrint
32
( const
std
::
string
&
type
,
33
const
std
::
string
& name ,
34
const
IInterface
* parent )
35
:
base_class
( type, name , parent )
36
{}
37
// ============================================================================
38
39
// ============================================================================
41
// ============================================================================
42
GslErrorPrint::~GslErrorPrint
(){}
43
// ============================================================================
44
45
// ============================================================================
52
// ============================================================================
53
StatusCode
GslErrorPrint::handle
54
(
const
GslError
& error )
const
55
{
56
MsgStream
log
( msgSvc() , name() );
57
log <<
MSG::ERROR
58
<<
" GSL code "
<< error.
code
59
<<
" Message '"
<< error.
reason
<<
"'"
60
<<
" File '"
<< error.
file
<<
"'"
61
<<
" Line "
<< error.
line
<<
endmsg
;
62
//
63
return
StatusCode::SUCCESS
;
64
}
65
// ============================================================================
66
67
68
// ============================================================================
69
// The END
70
// ============================================================================
GslError::reason
std::string reason
error message ('reason')
Definition:
GslError.h:21
MsgStream
Definition of the MsgStream class used to transmit messages.
Definition:
MsgStream.h:24
GslError::file
std::string file
file name
Definition:
GslError.h:23
GslError
Helper class to represent GSL errors.
Definition:
GslError.h:17
MsgStream.h
Gaudi.Configuration.log
tuple log
Definition:
Configuration.py:13
GslError::code
int code
error code (GSL)
Definition:
GslError.h:27
GslError::line
int line
line number
Definition:
GslError.h:25
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition:
PluginService.h:36
GslErrorPrint.h
GslErrorPrint::handle
virtual StatusCode handle(const GslError &error) const
handle the GSL error
Definition:
GslErrorPrint.cpp:54
gaudirun.type
string type
Definition:
gaudirun.py:126
StatusCode::SUCCESS
Definition:
StatusCode.h:34
StatusCode
This class is used for returning status codes from appropriate routines.
Definition:
StatusCode.h:30
IInterface
Definition of the basic interface.
Definition:
IInterface.h:160
extends1
Base class used to extend a class implementing other interfaces.
Definition:
extends.h:10
GslErrorPrint::~GslErrorPrint
virtual ~GslErrorPrint()
destructor (protected and virtual)
Definition:
GslErrorPrint.cpp:42
GslErrorPrint
Concrete GSL eror handler It is just prints the GSL errors.
Definition:
GslErrorPrint.h:24
GaudiPython.GaudiAlgs.std
std
Definition:
GaudiAlgs.py:75
Stat.h
MSG::ERROR
Definition:
IMessageSvc.h:21
IChronoStatSvc.h
ToolFactory.h
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition:
MsgStream.h:244
GaudiGSL
src
Components
GslErrorPrint.cpp
Generated on Tue Oct 21 2014 11:36:21 for The Gaudi Framework by
1.8.7