| The Gaudi Framework v29r1 (5cd95fa2)

- 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 #include <tuple>
8
16 class GAUDI_API GslError
17 {
18 public:
20 std::string reason;
22 std::string file;
24 int line;
26 int code;
28 GslError( std::string r = "", std::string f = "", const int l = 0, const int c = 0 )
29 : reason( std::move( r ) ), file( std::move( f ) ), line( l ), code( c ){};
31 friend bool operator<( const GslError& left, const GslError& right )
32 {
33 return std::tie( left.code, left.reason, left.file, left.line ) <
34 std::tie( right.code, right.reason, right.file, right.line );
35 };
36 };
37
38 // ============================================================================
39 // The END
40 // ============================================================================
41 #endif // GSLERROR_H
42 // ============================================================================
GslError::reason
std::string reason
error message (&#39;reason&#39;)
Definition: GslError.h:20
Kernel.h
GslError::file
std::string file
file name
Definition: GslError.h:22
gaudirun.c
c
Definition: gaudirun.py:407
GslError
Helper class to represent GSL errors.
Definition: GslError.h:16
std::tie
T tie(T...args)
GslError::code
int code
error code (GSL)
Definition: GslError.h:26
std
STL namespace.
GslError::line
int line
line number
Definition: GslError.h:24
std::string
STL class.
GslError::operator<
friend bool operator<(const GslError &left, const GslError &right)
comparison (ordering) criteria
Definition: GslError.h:31
gaudirun.l
dictionary l
Definition: gaudirun.py:440
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:110
GslError::GslError
GslError(std::string r="", std::string f="", const int l=0, const int c=0)
constructor
Definition: GslError.h:28