Version information container. More...
#include <version.hpp>
Public Member Functions | |
| constexpr | Version (uint8 major=0, uint8 minor=0, uint8 patch=0, uint8 build=0) noexcept |
| Creates a new version structure. | |
| constexpr | Version (uint32 version) noexcept |
| Creates a new version structure from encoded data. | |
| constexpr | operator uint32 () const noexcept |
| Encodes version data to the integer value. | |
| uint8 & | operator[] (psize i) noexcept |
| Returns version part by the index. | |
| uint8 | operator[] (psize i) const noexcept |
| Returns version part by the index. | |
| constexpr bool | operator< (Version v) const noexcept |
| constexpr bool | operator> (Version v) const noexcept |
| constexpr bool | operator<= (Version v) const noexcept |
| constexpr bool | operator>= (Version v) const noexcept |
| constexpr bool | operator== (Version v) const noexcept |
| constexpr bool | operator!= (Version v) const noexcept |
| string | toString4 () const noexcept |
| Creates a new version string. (X.X.X.X) | |
| string | toString3 () const noexcept |
| Creates a new version string. (X.X.X) | |
| string | toString2 () const noexcept |
| Creates a new version string. (X.X) | |
| string | toString1 () const noexcept |
| Creates a new version string. (X) | |
Public Attributes | |
| uint8 | major |
| uint8 | minor |
| uint8 | patch |
| uint8 | build |
Version information container.
Made of major, minor, patch and build parts.
|
inlineconstexprnoexcept |
Creates a new version structure.
| major | version major part value |
| minor | version minor part value |
| patch | version patch part value |
| build | version build part value |
Creates a new version structure from encoded data.
| version | target version encoded data |
Returns version part by the index.
| i | target version part index |
Returns version part by the index.
| i | target version part index |
| uint8 major |
Major version part.
| uint8 minor |
Minor version part.
| uint8 patch |
Patch version part.
| uint8 build |
Build version part.