Skip to content
Snippets Groups Projects
  1. Feb 28, 2018
  2. Feb 22, 2018
  3. Feb 19, 2018
  4. Feb 18, 2018
  5. Feb 15, 2018
  6. Feb 14, 2018
  7. Feb 13, 2018
  8. Feb 10, 2018
  9. Feb 09, 2018
  10. Feb 07, 2018
    • Gerhard Raven's avatar
      Avoid C-style casts · 257b12c6
      Gerhard Raven authored
      257b12c6
    • Frank Winklmeier's avatar
      Add category support to StatusCode · 22acc16e
      Frank Winklmeier authored
      The StatusCode now consists of a value and category/domain. By default
      StatusCodes are created within a "default category". But users can
      define new categories and StatusCodes using typed enums. The design is
      mainly borrowed from std::error_code.
      
      Main changes:
      - StatusCode::setCode has been removed
      - No implicit conversions from/to bool or int anymore. This greatly
        increases type safety.
      - Converted all unscoped enums in Gaudi to their own StatusCode
        category (Clients will have to adjust their code to the scoped enum
        names (e.g. ERR -> Status::ERR)
      - Added operator bool() that is equivalent to isSuccess()
      - Added ternary (bitwise) AND(&) and OR(|) operators to combine
        StatusCodes according to three-valued logic
      - Added extensive unit tests for all StatusCode features
      
      Impact on clients:
      - Code that relies on the implicit StatusCode<->bool/int conversion has
        to be changed to explicitly construct/convert StatusCodes via either
        the constructor, operator bool() or getCode().
      - Clients using Gaudi StatusCodes need to adjust to using the scoped
        enums. E.g. clients of the ConversionSvc need to change BAD_STORAGE_TYPE to
        Status::BAD_STORAGE_TYPE when checking for specific StatusCode return
        types.
      22acc16e
  11. Feb 05, 2018
  12. Jan 29, 2018
Loading