#include <GaudiKernel/StatusCode.h>
Public Types | |
| enum | { FAILURE = 0, SUCCESS = 1 } |
Public Methods | |
| StatusCode ( unsigned long code = SUCCESS ) | |
| Constructor. More... | |
| bool | isSuccess () const |
| Test for a status code of SUCCESS. More... | |
| bool | isFailure () const |
| Test for a status code of FAILURE. More... | |
| unsigned long | getCode () const |
| Get the status code by value. More... | |
| void | setCode ( unsigned long ) |
| Set the status code by value. More... | |
| operator unsigned long () const | |
| Cast operator. More... | |
| StatusCode& | operator= (unsigned long value) |
| Assignment operator. More... | |
Protected Attributes | |
| unsigned long | d_code |
| The status code. More... | |
Friends | |
| bool | operator< ( const StatusCode& a, const StatusCode& b ) |
| Comparison operator. More... | |
| bool | operator> ( const StatusCode& a, const StatusCode& b ) |
| Comparison operator. More... | |
Definition at line 13 of file StatusCode.h.
|
|
Definition at line 15 of file StatusCode.h. |
|
|
Constructor.
Definition at line 58 of file StatusCode.h. |
|
|
Get the status code by value.
Definition at line 69 of file StatusCode.h. Referenced by DataSvc::registerObject(). |
|
|
Test for a status code of FAILURE. N.B. This is a specific type of failure where there aren't any more appropriate staus codes. To test for any failure use : if ( !StatusCode.isSuccess() ) ... Definition at line 65 of file StatusCode.h. Referenced by Algorithm::auditorSvc(), Algorithm::chronoSvc(), Gaudi::createApplicationMgrEx(), Algorithm::createSubAlgorithm(), Algorithm::detCnvSvc(), Algorithm::detSvc(), Algorithm::eventCnvSvc(), Algorithm::eventSvc(), Algorithm::histoSvc(), Service::initialize(), Converter::initialize(), Algorithm::msgSvc(), Algorithm::ntupleSvc(), Algorithm::randSvc(), Algorithm::sysExecute(), and Algorithm::sysInitialize(). |
|
|
|
Cast operator.
Definition at line 77 of file StatusCode.h. |
|
|
Assignment operator.
Definition at line 81 of file StatusCode.h. |
|
|
Set the status code by value.
Definition at line 73 of file StatusCode.h. |
|
|
Comparison operator.
Definition at line 86 of file StatusCode.h. |
|
|
Comparison operator.
Definition at line 90 of file StatusCode.h. |
|
|
The status code.
Definition at line 55 of file StatusCode.h. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000