45 Version(Component major, Component minor, Component patch)
54 : major_(other.major_)
55 , minor_(other.minor_)
56 , patch_(other.patch_)
61 Component(major)()
const 67 Component(minor)()
const 82 major_ = other.major_;
83 minor_ = other.minor_;
84 patch_ = other.patch_;
108 return !(left == right);
125 return (right < left);
Component() minor() const
'minor' component of the version.
UInt16 VersionComponent
Alias for the version numeric component.
VersionComponent Component
Alias for the numeric component.
bool operator==(const Version &left, const Version &right)
Checks the given two instances for equality.
bool operator>(const Version &left, const Version &right)
Establishes the order between the given instances.
std::string toStr(const Version &version)
Serializes Version instance into point-separated presentation.
#define ONIXS_CMEMDH_LTWT
Version(const Version &other)
Initializes as a copy of the other instance.
char Char
Character type alias.
Version & operator=(const Version &other)
Re-initializes the instance as a copy of the other one.
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
bool operator!=(const Version &left, const Version &right)
Checks the given two instances for inequality.
#define ONIXS_CMEMDH_EXPORTED
Component() major() const
'major' component of the version.
#define ONIXS_CMEMDH_LTWT_EXPORTED
Identifies version of the product.
UInt16 UInt16
uInt16 optional.
Version(Component major, Component minor, Component patch)
Initializes the instance from the given components.
bool fromStr(const Char *, size_t, Version &)
Extracts version from point-separated presentation.
Component patch() const
'patch' component of the version.
bool operator<(const Version &left, const Version &right)
Establishes the order between the given instances.
#define ONIXS_CMEMDH_NAMESPACE_END