Implements versioning functionality. More...
#include <peak/version/peak_version.hpp>
Public Member Functions | |
| Version ()=delete | |
| Version (uint32_t major, uint32_t minor, uint32_t patch) | |
| ~Version ()=default | |
| Version (const Version &other)=default | |
| Version & | operator= (const Version &other)=default |
| Version (Version &&other)=default | |
| Version & | operator= (Version &&other)=default |
| PEAK_COMMON_NO_DISCARD std::string | ToString () const |
| Returns the version as string. | |
| PEAK_COMMON_NO_DISCARD uint32_t | Major () const |
| Returns the major part of the version which is the first part of the version scheme separated by dots. | |
| PEAK_COMMON_NO_DISCARD uint32_t | Minor () const |
| Returns the minor part of the version which is the second part of the version scheme separated by dots. | |
| PEAK_COMMON_NO_DISCARD uint32_t | Subminor () const |
| PEAK_COMMON_NO_DISCARD uint32_t | Patch () const |
| Returns the minor part of the version which is the second part of the version scheme separated by dots. | |
Implements versioning functionality.
This class allows to create and compare different versions.
|
delete |
|
inline |
|
default |
|
default |
|
default |
|
inline |
Returns the major part of the version which is the first part of the version scheme separated by dots.
|
inline |
Returns the minor part of the version which is the second part of the version scheme separated by dots.
|
inline |
Returns the minor part of the version which is the second part of the version scheme separated by dots.
|
inline |
|
inline |
Returns the version as string.