Represents a version number with major, minor, patch, and tweak components.
More...
#include <version.hpp>
Represents a version number with major, minor, patch, and tweak components.
Definition at line 10 of file version.hpp.
◆ Version() [1/2]
plugify::Version::Version |
( |
uint8_t |
major, |
|
|
uint8_t |
minor, |
|
|
uint8_t |
patch, |
|
|
uint8_t |
tweak |
|
) |
| |
|
noexcept |
Constructor to initialize a Version object with individual components.
- Parameters
-
major | The major version component. |
minor | The minor version component. |
patch | The patch version component. |
tweak | The tweak version component. |
◆ Version() [2/2]
plugify::Version::Version |
( |
uint32_t |
version | ) |
|
|
explicitnoexcept |
Explicit constructor to initialize a Version object from a packed 32-bit version number.
- Parameters
-
version | The packed 32-bit version number. |
◆ operator uint32_t()
plugify::Version::operator uint32_t |
( |
| ) |
const |
|
noexcept |
Conversion operator to retrieve the packed 32-bit version number.
- Returns
- The packed 32-bit version number.
◆ operator<=>()
auto plugify::Version::operator<=> |
( |
const Version & |
rhs | ) |
const |
|
noexcept |
Comparison operator (<=>) for comparing two Version objects.
- Parameters
-
rhs | The right-hand side Version object for comparison. |
- Returns
- The result of the comparison.
◆ operator=()
Version& plugify::Version::operator= |
( |
uint32_t |
version | ) |
|
|
noexcept |
Assignment operator to set the Version object from a packed 32-bit version number.
- Parameters
-
version | The packed 32-bit version number. |
- Returns
- Reference to the modified Version object.
◆ ToString()
std::string plugify::Version::ToString |
( |
| ) |
const |
Get a string representation of the Version object.
- Returns
- A string representing the Version object.
The documentation for this class was generated from the following file: