| The Gaudi Framework v30r0 (c919700c)

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

- File List
- File Members

Classes | Functions
StatusCode.h File Reference
`#include <ostream>`
`#include <utility>`
`#include "GaudiKernel/Kernel.h"`
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 163 of file StatusCode.h.

164 {
165 if ( sc.isSuccess() ) {
166 return s << "SUCCESS";
167 }
168 if ( sc.isRecoverable() ) {
169 return s << "RECOVERABLE";
170 }
171 s << "FAILURE";
172 return ( StatusCode::FAILURE != sc.getCode() ) ? s << "(" << sc.getCode() << ")" : s;
173 }
StatusCode::getCode
unsigned long getCode() const
Get the status code by value.
Definition: StatusCode.h:69
StatusCode::isSuccess
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:50
StatusCode::isRecoverable
bool isRecoverable() const
Definition: StatusCode.h:62
gaudirun.s
string s
Definition: gaudirun.py:253
StatusCode::FAILURE
Definition: StatusCode.h:29