Gaudi Framework, version v20r2

Generated: 18 Jul 2008

StatusCode.h File Reference

#include <ostream>

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::ostreamoperator<< (std::ostream &s, const StatusCode &sc)


Function Documentation

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

Definition at line 170 of file StatusCode.h.

References StatusCode::d_code.

00170                                                                    {
00171   return a.d_code < b.d_code;
00172 }

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

Definition at line 178 of file StatusCode.h.

References StatusCode::FAILURE, StatusCode::getCode(), StatusCode::isRecoverable(), StatusCode::isSuccess(), and Gaudi::Units::s.

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

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

Definition at line 174 of file StatusCode.h.

References StatusCode::d_code.

00174                                                                    {
00175   return a.d_code > b.d_code;
00176 }


Generated at Fri Jul 18 12:03:33 2008 for Gaudi Framework, version v20r2 by Doxygen version 1.5.1 written by Dimitri van Heesch, © 1997-2004