00001 // $Id: GslError.h,v 1.2 2003/11/19 16:55:57 mato Exp $ 00002 // ============================================================================ 00003 #ifndef GAUDIGSL_GSLERROR_H 00004 #define GAUDIGSL_GSLERROR_H 1 00005 // Include files 00006 // STD & STL 00007 #include <string> 00008 00016 class GslError 00017 { 00018 public: 00020 std::string reason ; 00022 std::string file ; 00024 int line ; 00026 int code ; 00028 GslError( const std::string& r = "" , 00029 const std::string& f = "" , 00030 const int l = 0 , 00031 const int c = 0 ) 00032 : reason ( r ) , file ( f ) , line ( l ) , code ( c ) {}; 00034 bool operator<( const GslError& right ) const 00035 { 00036 return 00037 code < right.code ? true : 00038 right.code < code ? false : 00039 reason < right.reason ? true : 00040 right.reason < reason ? false : 00041 file < right.file ? true : 00042 right.file < file ? false : line < right.line ; 00043 }; 00044 }; 00045 00046 // ============================================================================ 00047 // The END 00048 // ============================================================================ 00049 #endif // GSLERROR_H 00050 // ============================================================================