Gaudi Framework, version v22r2

Home   Generated: Tue May 10 2011

GslError.h

Go to the documentation of this file.
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 #include "GaudiKernel/Kernel.h"
00007 // STD & STL
00008 #include <string>
00009 
00017 class GAUDI_API GslError
00018 {
00019 public:
00021   std::string reason ;
00023   std::string file   ;
00025   int         line   ;
00027   int         code   ;
00029   GslError( const std::string&  r = "" ,
00030             const std::string&  f = "" ,
00031             const int           l = 0  ,
00032             const int           c = 0  )
00033     : reason ( r ) , file   ( f ) , line   ( l ) , code   ( c ) {};
00035   bool operator<( const GslError& right ) const
00036   {
00037     return
00038       code         < right.code   ? true  :
00039       right.code   <       code   ? false :
00040       reason       < right.reason ? true  :
00041       right.reason <       reason ? false :
00042       file         < right.file   ? true  :
00043       right.file   <       file   ? false : line < right.line ;
00044   };
00045 };
00046 
00047 // ============================================================================
00048 // The END
00049 // ============================================================================
00050 #endif // GSLERROR_H
00051 // ============================================================================
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Tue May 10 2011 18:53:23 for Gaudi Framework, version v22r2 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004