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.
virtual StatusCode getProperty(Property *p) const =0
Get the property by property.
bool isSuccess() const
Test for a status code of SUCCESS.
const int IncidentFailure
const int UnhandledException
const int FinalizationFailure
Error codes for operation failures.
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 int AlgorithmFailure
Helper functions to set/get the application return code.