5 #ifndef ASGMESSAGING_STATUSCODE_H
6 #define ASGMESSAGING_STATUSCODE_H
11 #ifndef XAOD_STANDALONE
13 # include "GaudiKernel/StatusCode.h"
14 #else // not XAOD_STANDALONE
46 bool isSuccess()
const noexcept {
return m_code ==
SUCCESS; }
48 bool isFailure()
const noexcept {
return !isSuccess(); }
53 operator unsigned long()
const noexcept {
return m_code; }
62 void setChecked()
const noexcept { }
63 static void enableFailure() noexcept { }
64 static void enableChecking() noexcept { }
65 static void disableFailure() noexcept { }
66 static void disableChecking() noexcept { }
74 #endif // not XAOD_STANDALONE
75 #endif // ASGMESSAGING_STATUSCODE_H