| The Gaudi Framework v28r2p1 (f1a77ff4)

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

- File List
- File Members

GslError.h
Go to the documentation of this file.
1 #ifndef GAUDIGSL_GSLERROR_H
2 #define GAUDIGSL_GSLERROR_H 1
3 // Include files
4 #include "GaudiKernel/Kernel.h"
5 // STD & STL
6 #include <string>
7
15 class GAUDI_API GslError
16 {
17 public:
19 std::string reason ;
21 std::string file ;
23 int line ;
25 int code ;
27 GslError( std::string r = "" ,
28 std::string f = "" ,
29 const int l = 0 ,
30 const int c = 0 )
31 : reason ( std::move(r) ) , file ( std::move(f) ) , line ( l ) , code ( c ) {};
33 bool operator<( const GslError& right ) const
34 {
35 return
36 code < right.code ? true :
37 right.code < code ? false :
38 reason < right.reason ? true :
39 right.reason < reason ? false :
40 file < right.file ? true :
41 right.file < file ? false : line < right.line ;
42 };
43 };
44
45 // ============================================================================
46 // The END
47 // ============================================================================
48 #endif // GSLERROR_H
49 // ============================================================================
GslError::reason
std::string reason
error message (&#39;reason&#39;)
Definition: GslError.h:19
Kernel.h
GslError::file
std::string file
file name
Definition: GslError.h:21
gaudirun.c
c
Definition: gaudirun.py:391
GslError
Helper class to represent GSL errors.
Definition: GslError.h:15
GslError::code
int code
error code (GSL)
Definition: GslError.h:25
std
STL namespace.
GslError::line
int line
line number
Definition: GslError.h:23
std::string
STL class.
gaudirun.l
dictionary l
Definition: gaudirun.py:421
GslError::operator<
bool operator<(const GslError &right) const
comparison (ordering) criteria
Definition: GslError.h:33
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:107
GslError::GslError
GslError(std::string r="", std::string f="", const int l=0, const int c=0)
constructor
Definition: GslError.h:27