Gaudi Framework, version v21r8

Home   Generated: 17 Mar 2010

IErrorTool.h

Go to the documentation of this file.
00001 // $Id: IErrorTool.h,v 1.2 2004/10/18 08:17:59 mato Exp $
00002 // ============================================================================
00003 #ifndef GAUDIALG_IERRORTOOL_H
00004 #define GAUDIALG_IERRORTOOL_H 1
00005 // ============================================================================
00006 // Include files
00007 // ============================================================================
00008 // STD & STL
00009 // ============================================================================
00010 #include <string>
00011 // ============================================================================
00012 // GaudiKernel
00013 // ============================================================================
00014 #include "GaudiKernel/IAlgTool.h"
00015 #include "GaudiKernel/StatusCode.h"
00016 #include "GaudiKernel/IMessageSvc.h"
00017 // ============================================================================
00018 class GaudiException ;
00019 
00026 class GAUDI_API IErrorTool: virtual public IAlgTool
00027 {
00028 public:
00030   DeclareInterfaceID(IErrorTool,2,0);
00031 
00032 public:
00033 
00055   virtual StatusCode Error
00056   ( const std::string& msg ,
00057     const StatusCode   st  = StatusCode::FAILURE ,
00058     const size_t       mx  = 10                  ) const = 0 ;
00059 
00070   virtual StatusCode Warning
00071   ( const std::string& msg ,
00072     const StatusCode   st  = StatusCode::FAILURE ,
00073     const size_t       mx  = 10                  ) const = 0 ;
00074 
00084   virtual StatusCode Print
00085   ( const std::string& msg ,
00086     const StatusCode   st  = StatusCode::SUCCESS ,
00087     const MSG::Level   lev = MSG::INFO           ) const = 0 ;
00088 
00098   virtual void Assert
00099   ( const bool         ok                            ,
00100     const std::string& message = ""                  ,
00101     const StatusCode   sc      = StatusCode::FAILURE ) const = 0 ;
00102 
00111   virtual void Exception
00112   ( const std::string    & msg                        ,
00113     const GaudiException & exc                        ,
00114     const StatusCode       sc  = StatusCode::FAILURE  ) const = 0 ;
00115 
00124   virtual void Exception
00125   ( const std::string    & msg                        ,
00126     const std::exception & exc                        ,
00127     const StatusCode       sc  = StatusCode::FAILURE  ) const = 0 ;
00128 
00136   virtual void Exception
00137   ( const std::string& msg = "no message"        ,
00138     const StatusCode   sc  = StatusCode::FAILURE ) const = 0 ;
00139 
00140 protected:
00141 
00142   // protected destructor
00143   virtual ~IErrorTool() ;
00144 
00145 };
00146 
00147 // ============================================================================
00148 #endif // GAUDIALG_IERRORTOOL_H
00149 // ============================================================================

Generated at Wed Mar 17 18:06:05 2010 for Gaudi Framework, version v21r8 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004