Quick Links:

bmqa | bmqpi | bmqt

Namespaces

Component bmqt_version
[Package bmqt]

Provide a value-semantic type representing a version (major minor). More...

Namespaces

namespace  bmqt

Detailed Description

Outline
Purpose:
Provide a value-semantic type representing a version (major minor).
Classes:
bmqt::Version version with major and minor parts.
Description:
This component implements a simple value-semantic type, bmqt::Version representing the version of an object. It is used in particular to attach a version attribute to a bmqa::Message, so that a consuming application receiving a message knows the version of the schema that was used for publishing.
A version is represented by two numbers: a major and a minor version. Both are positive integers within the range [0-255].
Usage Example:
  bmqt::Version version(1, 3);
  BSLS_ASSERT(version.major() == 1);
  BSLS_ASSERT(version.minor() == 3);
  version.setMajor(2).setMinor(4);
  BSLS_ASSERT(version.major() == 2);
  BSLS_ASSERT(version.minor() == 4);