| # Gaudi Framework, version v20r4
Generated: 8 Jan 2009

# StatusCode.h File Reference

`#include <ostream>`
`#include "GaudiKernel/IssueSeverity.h"`

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
bool | operator< (const StatusCode &a, const StatusCode &b)
bool | operator> (const StatusCode &a, const StatusCode &b)
std::ostream & | operator<< (std::ostream &s, const StatusCode &sc)

## Function Documentation

bool operator< | ( | const StatusCode & | a,
|  | const StatusCode & | b |
| ) |  |  | `[inline]`

Definition at line 173 of file StatusCode.h.

    00173                                                                    {
    00174   return a.d_code < b.d_code;
    00175 }

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

Definition at line 181 of file StatusCode.h.

    00182 {
    00183   if ( sc.isSuccess() ) { return s << "SUCCESS" ; }
    00184   else if ( sc.isRecoverable() ) { return s << "RECOVERABLE" ; }
    00185   s << "FAILURE" ;
    00186   if ( StatusCode::FAILURE != sc.getCode() )
    00187     { s << "(" << sc.getCode() << ")" ;}
    00188   return s ;
    00189 }

bool operator> | ( | const StatusCode & | a,
|  | const StatusCode & | b |
| ) |  |  | `[inline]`

Definition at line 177 of file StatusCode.h.

    00177                                                                    {
    00178   return a.d_code > b.d_code;
    00179 }