6 #ifndef APPRETURNCODE_H_
7 #define APPRETURNCODE_H_
9 #include "GaudiKernel/IProperty.h"
10 #include "GaudiKernel/Property.h"
14 namespace ReturnCode {
54 if (returnCode.
value() == 0 || force) {
74 return returnCode.
value();
int getAppReturnCode(const SmartIF< IProperty > &appmgr)
Get the application (current) return code.
constexpr int FinalizationFailure
Error codes for operation failures.
virtual StatusCode getProperty(Property *p) const =0
Get the property by property.
bool isSuccess() const
Test for a status code of SUCCESS.
constexpr int GenericFailure
bool setValue(const TYPE &value) override
implementation of PropertyWithValue::setValue
constexpr int ScheduledStop
constexpr int CorruptedInput
constexpr int UnhandledException
This class is used for returning status codes from appropriate routines.
virtual StatusCode setProperty(const Property &p)=0
Set the property by property.
StatusCode setAppReturnCode(SmartIF< IProperty > &appmgr, int value, bool force=false)
Set the application return code.
const TYPE & value() const
explicit conversion
constexpr int IncidentFailure
constexpr int AlgorithmFailure
constexpr int SignalOffset
Helper functions to set/get the application return code.