All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
16 {
17 public:
23  int line ;
25  int code ;
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 // ============================================================================
std::string reason
error message (&#39;reason&#39;)
Definition: GslError.h:19
std::string file
file name
Definition: GslError.h:21
Helper class to represent GSL errors.
Definition: GslError.h:15
int code
error code (GSL)
Definition: GslError.h:25
STL namespace.
int line
line number
Definition: GslError.h:23
STL class.
dictionary l
Definition: gaudirun.py:421
bool operator<(const GslError &right) const
comparison (ordering) criteria
Definition: GslError.h:33
#define GAUDI_API
Definition: Kernel.h:107
GslError(std::string r="", std::string f="", const int l=0, const int c=0)
constructor
Definition: GslError.h:27