|
Gaudi Framework, version v24r2 |
| Home | Generated: Wed Dec 4 2013 |
This class is used for returning status codes from appropriate routines. More...
#include <GaudiKernel/StatusCode.h>
Public Types | |
| enum | { FAILURE = 0, SUCCESS = 1, RECOVERABLE = 2 } |
Public Member Functions | |
| StatusCode () | |
| Constructor. | |
| StatusCode (unsigned long code, const IssueSeverity &sev) | |
| StatusCode (unsigned long code, bool checked=false) | |
| StatusCode (const StatusCode &rhs) | |
| GAUDI_API | ~StatusCode () |
| Destructor. | |
| bool | isSuccess () const |
| Test for a status code of SUCCESS. | |
| bool | isFailure () const |
| Test for a status code of FAILURE. | |
| bool | isRecoverable () const |
| unsigned long | getCode () const |
| Get the status code by value. | |
| void | setCode (unsigned long value) |
| Set the status code by value. | |
| void | setChecked () const |
| Ignore the checking code;. | |
| void | ignore () const |
| operator unsigned long () const | |
| Cast operator. | |
| GAUDI_API const IssueSeverity & | severity () const |
| Severity. | |
| StatusCode & | operator= (unsigned long value) |
| Assignment operator. | |
| StatusCode & | operator= (const StatusCode &rhs) |
| operator IgnoreError () const | |
Static Public Member Functions | |
| static GAUDI_API void | enableChecking () |
| static GAUDI_API void | disableChecking () |
Protected Types | |
| typedef boost::shared_ptr < IssueSeverity > | SeverityPtr |
Protected Attributes | |
| unsigned long | d_code |
| The status code. | |
| bool | m_checked |
| If the Status code has been checked. | |
| SeverityPtr | m_severity |
| Pointer to a IssueSeverity. | |
Static Protected Attributes | |
| static bool | s_checking |
| Global flag to control if StatusCode need to be checked. | |
Friends | |
| bool | operator< (const StatusCode &a, const StatusCode &b) |
| Comparison operator. | |
| bool | operator> (const StatusCode &a, const StatusCode &b) |
| Comparison operator. | |
This class is used for returning status codes from appropriate routines.
Definition at line 26 of file StatusCode.h.
|
protected |
Definition at line 136 of file StatusCode.h.
| anonymous enum |
Definition at line 28 of file StatusCode.h.
|
inline |
Constructor.
Definition at line 35 of file StatusCode.h.
|
inline |
Definition at line 37 of file StatusCode.h.
|
inline |
Definition at line 44 of file StatusCode.h.
|
inline |
Definition at line 47 of file StatusCode.h.
| StatusCode::~StatusCode | ( | ) |
Destructor.
: (MCl) use backTrace(std::string&, const int, const int) instead
Definition at line 33 of file StatusCode.cpp.
|
static |
Definition at line 23 of file StatusCode.cpp.
|
static |
Definition at line 19 of file StatusCode.cpp.
|
inline |
Get the status code by value.
Definition at line 75 of file StatusCode.h.
|
inline |
Definition at line 90 of file StatusCode.h.
|
inline |
Test for a status code of FAILURE.
N.B. This is a specific type of failure where there aren't any more appropriate status codes. To test for any failure use : if ( !StatusCode.isSuccess() ) ...
Definition at line 68 of file StatusCode.h.
|
inline |
Definition at line 69 of file StatusCode.h.
|
inline |
|
inline |
Definition at line 123 of file StatusCode.h.
|
inline |
|
inline |
|
inline |
Definition at line 103 of file StatusCode.h.
|
inline |
|
inline |
Set the status code by value.
Definition at line 81 of file StatusCode.h.
| const IssueSeverity & StatusCode::severity | ( | ) | const |
Severity.
Definition at line 27 of file StatusCode.cpp.
|
friend |
|
friend |
|
protected |
|
mutableprotected |
If the Status code has been checked.
Definition at line 135 of file StatusCode.h.
|
protected |
Pointer to a IssueSeverity.
Definition at line 137 of file StatusCode.h.
|
staticprotected |
Global flag to control if StatusCode need to be checked.
Definition at line 139 of file StatusCode.h.