Provide enums for various publicly exposed result code.
More...
Namespaces |
namespace | bmqt |
Detailed Description
- Outline
-
-
- Purpose:
- Provide enums for various publicly exposed result code.
-
- Classes:
-
-
- Description:
- This file contains a list of Enums (
bmqt::GenericResult
, bmqt::AckResult
, bmqt::CloseQueueResult
, bmqt::EventBuilderResult
, bmqt::OpenQueueResult
, bmqt::ConfigureQueueResult
, and bmqt::PostResult
) that are publicly exposed to Application (via bmqa), but whose value comes from the internal implementation (bmqimp). Having them defined in bmqt allows bmqa to return the enum returned by bmqimp with no transformation.
- All enums are using the convention that < 0 values are errors, while > 0 are warnings.
- The
GenericStatus
enum contains values that are common for most or all of the other status enums, such as success
, timeout
, ... The values of its members can range from -99 to 99.
- Each other enum should duplicate any values from the
GenericStatus
one that it intends to be able to represent (aliasing the values to the ones from the GenericStatus
enum) and extend with specialized values in the ]..., -99[
or ]99, ...[
ranges.