| The Gaudi Framework v29r0 (ff2e7097)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

Classes | Functions
StatusCode.h File Reference
`#include <ostream>`
`#include "GaudiKernel/IssueSeverity.h"`
`#include "GaudiKernel/Kernel.h"`
`#include <memory>`
Include dependency graph for StatusCode.h:

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...
class | StatusCode::ScopedDisableChecking
| Simple RAII class to ignore unchecked StatusCode instances in a scope. 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 192 of file StatusCode.h.

193 {
194 if ( sc.isSuccess() ) {
195 return s << "SUCCESS";
196 }
197 if ( sc.isRecoverable() ) {
198 return s << "RECOVERABLE";
199 }
200 s << "FAILURE";
201 return ( StatusCode::FAILURE != sc.getCode() ) ? s << "(" << sc.getCode() << ")" : s;
202 }
StatusCode::FAILURE
Definition: StatusCode.h:31
StatusCode::getCode
unsigned long getCode() const
Get the status code by value.
Definition: StatusCode.h:94
StatusCode::isSuccess
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:75
StatusCode::isRecoverable
bool isRecoverable() const
Definition: StatusCode.h:87
gaudirun.s
string s
Definition: gaudirun.py:253