![]() |
|
|
Generated: 24 Nov 2008 |
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 IErrorTool : virtual public IAlgTool 00027 { 00028 public: 00029 00031 static const InterfaceID& interfaceID() ; 00032 00033 public: 00034 00056 virtual StatusCode Error 00057 ( const std::string& msg , 00058 const StatusCode st = StatusCode::FAILURE , 00059 const size_t mx = 10 ) const = 0 ; 00060 00071 virtual StatusCode Warning 00072 ( const std::string& msg , 00073 const StatusCode st = StatusCode::FAILURE , 00074 const size_t mx = 10 ) const = 0 ; 00075 00085 virtual StatusCode Print 00086 ( const std::string& msg , 00087 const StatusCode st = StatusCode::SUCCESS , 00088 const MSG::Level lev = MSG::INFO ) const = 0 ; 00089 00099 virtual StatusCode Assert 00100 ( const bool ok , 00101 const std::string& message = "" , 00102 const StatusCode sc = StatusCode::FAILURE ) const = 0 ; 00103 00112 virtual StatusCode Exception 00113 ( const std::string & msg , 00114 const GaudiException & exc , 00115 const StatusCode sc = StatusCode::FAILURE ) const = 0 ; 00116 00125 virtual StatusCode Exception 00126 ( const std::string & msg , 00127 const std::exception & exc , 00128 const StatusCode sc = StatusCode::FAILURE ) const = 0 ; 00129 00137 virtual StatusCode Exception 00138 ( const std::string& msg = "no message" , 00139 const StatusCode sc = StatusCode::FAILURE ) const = 0 ; 00140 00141 protected: 00142 00143 // protected destructor 00144 virtual ~IErrorTool() ; 00145 00146 }; 00147 00148 // ============================================================================ 00149 #endif // GAUDIALG_IERRORTOOL_H 00150 // ============================================================================