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) {
55 returnCode.setValue(value);
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
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.
constexpr int IncidentFailure
constexpr int AlgorithmFailure
constexpr int SignalOffset
Helper functions to set/get the application return code.