Class that represents, and provides helper functions for, a Version number
Version( |
| ) |
Create a Version object from major, minor, patch.
major uint32 | The major part of the version (ie. 1 in 1.23.97). |
minor uint32 | The minor part of the version (ie. 23 in 1.23.97). |
patch uint32 | The patch part of the version (ie. 97 in 1.23.97). |
Version( |
| ) |
Create a Version object from major and minor.
major uint32 | The major part of the version (ie. 1 in 1.23.97). |
minor uint32 | The minor part of the version (ie. 23 in 1.23.97). |
Version( |
| ) |
Gets a string representation of the Version.
A string representing the Version.
bool fromString( |
| ) |
Builds the Version object from the given string. If successful, the Version object will be updated to the given string.
strVersion const std::string& | The string representation of a version (ie. "1.23") |
true if the string was parsed successfully and the Version was updated, false if the string failed to parse
Gets the major part of the Version
The major part of the Version (ie. 1 in 1.23.97)
Gets the minor part of the Version
The minor part of the Version (ie. 23 in 1.23.97)
Gets the patch part of the Version
The patch part of the Version (ie. 97 in 1.23.97)