All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GslError Struct Reference

Helper class to represent GSL errors. More...

#include <GaudiGSL/GslError.h>

Collaboration diagram for GslError:

Public Member Functions

 GslError (const std::string &r="", const std::string &f="", const int l=0, const int c=0)
 constructor More...
 
bool operator< (const GslError &right) const
 comparison (ordering) criteria More...
 

Public Attributes

std::string reason
 error message ('reason') More...
 
std::string file
 file name More...
 
int line
 line number More...
 
int code
 error code (GSL) More...
 

Detailed Description

Helper class to represent GSL errors.

Author
Vanya Belyaev Ivan.Belyaev
Date
29/04/2002

Definition at line 17 of file GslError.h.

Constructor & Destructor Documentation

GslError::GslError ( const std::string &  r = "",
const std::string &  f = "",
const int  l = 0,
const int  c = 0 
)
inline

constructor

Definition at line 29 of file GslError.h.

33  : reason ( r ) , file ( f ) , line ( l ) , code ( c ) {};
std::string reason
error message ('reason')
Definition: GslError.h:21
std::string file
file name
Definition: GslError.h:23
int code
error code (GSL)
Definition: GslError.h:27
tuple c
Definition: gaudirun.py:341
int line
line number
Definition: GslError.h:25
dictionary l
Definition: gaudirun.py:365

Member Function Documentation

bool GslError::operator< ( const GslError right) const
inline

comparison (ordering) criteria

Definition at line 35 of file GslError.h.

36  {
37  return
38  code < right.code ? true :
39  right.code < code ? false :
40  reason < right.reason ? true :
41  right.reason < reason ? false :
42  file < right.file ? true :
43  right.file < file ? false : line < right.line ;
44  };
std::string reason
error message ('reason')
Definition: GslError.h:21
std::string file
file name
Definition: GslError.h:23
int code
error code (GSL)
Definition: GslError.h:27
int line
line number
Definition: GslError.h:25

Member Data Documentation

int GslError::code

error code (GSL)

Definition at line 27 of file GslError.h.

std::string GslError::file

file name

Definition at line 23 of file GslError.h.

int GslError::line

line number

Definition at line 25 of file GslError.h.

std::string GslError::reason

error message ('reason')

Definition at line 21 of file GslError.h.


The documentation for this struct was generated from the following file: