Provides version information. OLA Version numbers are in the form major.minor.revision e.g. 0.10.9.
|
| static unsigned int | GetMajor () |
| | the Major version number
|
| |
| static unsigned int | GetMinor () |
| | the Minor version number
|
| |
| static unsigned int | GetRevision () |
| | the revision number
|
| |
| static std::string | GetVersion () |
| | the version number as a string.
|
| |
| static bool | IsAtLeast (unsigned int major, unsigned int minor, unsigned int revision) |
| | Check the running version is newer than or equal to a specific version.
|
| |
◆ GetMajor()
| unsigned int ola::base::Version::GetMajor |
( |
| ) |
|
|
static |
the Major version number
- Returns
- the major version number.
◆ GetMinor()
| unsigned int ola::base::Version::GetMinor |
( |
| ) |
|
|
static |
the Minor version number
- Returns
- the minor version number.
◆ GetRevision()
| unsigned int ola::base::Version::GetRevision |
( |
| ) |
|
|
static |
the revision number
- Returns
- the revision number.
◆ GetVersion()
| string ola::base::Version::GetVersion |
( |
| ) |
|
|
static |
the version number as a string.
- Returns
- the version number as a string.
◆ IsAtLeast()
| bool ola::base::Version::IsAtLeast |
( |
unsigned int | major, |
|
|
unsigned int | minor, |
|
|
unsigned int | revision ) |
|
static |
Check the running version is newer than or equal to a specific version.
- Parameters
-
| major | the major version. |
| minor | the minor version. |
| revision | the revision. |
- Returns
- true if the running version is >= major.minor.revision.
The documentation for this class was generated from the following files:
- include/ola/base/Version.h
- common/base/Version.cpp