All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::ostream & operator<< (std::ostream &s, const StatusCode &sc)
 

Function Documentation

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

Definition at line 154 of file StatusCode.h.

155 {
156  if ( sc.isSuccess() ) { return s << "SUCCESS" ; }
157  else if ( sc.isRecoverable() ) { return s << "RECOVERABLE" ; }
158  s << "FAILURE" ;
159  if ( StatusCode::FAILURE != sc.getCode() )
160  { s << "(" << sc.getCode() << ")" ;}
161  return s ;
162 }
unsigned long getCode() const
Get the status code by value.
Definition: StatusCode.h:79
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:62
bool isRecoverable() const
Definition: StatusCode.h:73
string s
Definition: gaudirun.py:210