Gaudi Framework, version v22r0

Home   Generated: 9 Feb 2011

StatusCode.h File Reference

#include <ostream>
#include "GaudiKernel/Kernel.h"
#include "GaudiKernel/IssueSeverity.h"
#include "boost/shared_ptr.hpp"
Include dependency graph for StatusCode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  IgnoreError
class  StatusCode
 This class is used for returning status codes from appropriate routines. More...

Functions

std::ostreamoperator<< (std::ostream &s, const StatusCode &sc)

Function Documentation

std::ostream& operator<< ( std::ostream s,
const StatusCode sc 
) [inline]

Definition at line 142 of file StatusCode.h.

00143 {
00144   if ( sc.isSuccess() ) { return s << "SUCCESS" ; }
00145   else if ( sc.isRecoverable() ) { return s << "RECOVERABLE" ; }
00146   s << "FAILURE" ;
00147   if ( StatusCode::FAILURE != sc.getCode() )
00148     { s << "(" << sc.getCode() << ")" ;}
00149   return s ;
00150 }

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Wed Feb 9 16:27:39 2011 for Gaudi Framework, version v22r0 by Doxygen version 1.6.2 written by Dimitri van Heesch, © 1997-2004