Skip to content

Add support for user-specific StatusCode values (GAUDI-1309)

Frank Winklmeier requested to merge fwinkl/Gaudi:user_statuscode into master

Split the StatusCode value into a Gaudi-specific part and a user-specific part. The isSuccess(), etc. methods only act on the Gaudi-specific part of the code. Hence there is no impact on client code. However, users can use the remaining bits to encode experiment specific codes and retrieve them via getCode().

Other changes:

  • Add unit test for StatusCode
  • Add accessor for m_checked
  • Minor documentation cleanup
  • Remove < and > operators to make them behave the same as other comparisons. E.g. sc1 < sc2 would not result in a checked StatusCode but sc1 <= sc2 does (because the comparison in the second case happened through an implicit cast).

Merge request reports