Cat
|
#include <GaudiKernel/StatusCode.h>
Public Types | |
enum | Type { FAILURE = 0, SUCCESS = 1 } |
Public Member Functions | |
StatusCode (unsigned long code=SUCCESS) | |
Constructor. More... | |
bool | isSuccess () const |
bool | isFailure () const |
StatusCode & | operator= (unsigned long value) |
Assignment operator. More... | |
Protected Attributes | |
unsigned long | d_code |
The status code. More... | |
This class is used for returning status codes from appropriate routines.
Definition at line 16 of file StatusCode.h.
enum StatusCode::Type |
Enumerator | |
---|---|
FAILURE | |
SUCCESS |
Definition at line 18 of file StatusCode.h.
|
inline |
|
inline |
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 68 of file StatusCode.h.
References d_code, and SUCCESS.
Referenced by A3PE::clockDivision(), LSDelayChipV1::configRegBulkRead(), LSDelayChipV1::configRegBulkWrite(), A3PE::enableStorage(), export_base(), A3PE::fifoDepth(), A3PE::fifoLatency(), FEB_v1::gbtAcknowledgeConfig(), FEB_v1::gbtDLLReset(), A3PE::latencyAX(), A3PE::lengthAX(), A3PE::nTrigger(), A3PE::pipeline(), Phaser::read(), ICPhaser::read(), ICPhaser::reset(), A3PE::reset(), A3PE::setAddFromAXRam(), A3PE::setAddToAXRam(), A3PE::setAXRamUsb(), FEB_v1::setCalibCte(), FEB_v1::setClock80MHzFallingEdge(), A3PE::setClockDivision(), FEB_v1::setClockFallingEdge(), FEB_v1::setDisableSubtract(), A3PE::setFifoDepth(), A3PE::setFifoLatency(), FEB_v1::setGain4(), FEB_v1::setGbt80MHzClkEport(), FEB_v1::setGbtClockStrength(), FEB_v1::setGbtDataPath(), FEB_v1::setGbtDLLEport(), FEB_v1::setGbtEnableEport(), FEB_v1::setGbtMode(), FEB_v1::setGbtTermEport(), FEB_v1::setGbtTrackMode(), FEB_v1::setGlobalPseudoPMEnable(), FEB_v1::setInjectModeFE(), FEB_v1::setLatency(), A3PE::setLatencyAX(), FEB_v1::setLatencyLLT(), FEB_v1::setLatencyLLTCorner(), FEB_v1::setLatencyLLTSideNb(), FEB_v1::setLatencyLLTUpNb(), A3PE::setLengthAX(), FEB_v1::setMaskLLT(), FEB_v1::setMaskLLTCorner(), FEB_v1::setMaskLLTSideNb(), FEB_v1::setMaskLLTUpNb(), A3PE::setNTrigger(), FEB_v1::setOldSubtract(), FEB_v1::setOutputEport(), A3PE::setPipeline(), FEB_v1::setPseudoADCEnable(), FEB_v1::setPseudoPMEnable(), A3PE::setReadPatternFifoUsb(), A3PE::setReadToAXRamUsb(), A3PE::setReadTriggerFifoUsb(), A3PE::setSoftwareTrigger(), FEB_v1::setSpyModeFE(), FEB_v1::setStopInjLoop(), FEB_v1::setTestDuration(), FEB_v1::setThreshold(), A3PE::setTriggerDelay(), A3PE::setTriggerRate(), A3PE::setWriteFromAXRamUsb(), A3PE::setWriteStorageFifoUsb(), ICECALv3::spiRead(), ICECALv3::spiWrite(), A3PE::startSequenceAX(), ICPhaser::status(), Application::svcRunning(), A3PE::triggerDelay(), A3PE::triggerRate(), Phaser::write(), and ICPhaser::write().
|
inline |
Test for a status code of SUCCESS. N.B. This is the only case where a function has succeeded.
Definition at line 64 of file StatusCode.h.
References d_code, and SUCCESS.
Referenced by export_base(), and DLLMgr::load().
|
inline |
|
protected |
The status code.
Definition at line 58 of file StatusCode.h.
Referenced by isFailure(), isSuccess(), and operator=().