#include <version.hpp>
|
static const int | Major = LEOSAC_VERSION_MAJOR |
|
static const int | Minor = LEOSAC_VERSION_MINOR |
|
static const int | Patch = LEOSAC_VERSION_PATCH |
|
static const std::string | validChars |
|
Definition at line 35 of file version.hpp.
◆ Version()
Leosac::Tools::Version::Version |
( |
| ) |
|
|
privatedelete |
◆ buildVersionString()
std::string Version::buildVersionString |
( |
int |
major, |
|
|
int |
minor, |
|
|
int |
patch, |
|
|
std::string |
git_sha1 = "" |
|
) |
| |
|
static |
return semver compatible version string formatted this way: MAJOR.MINOR.PATCH
- See also
- getVersionString()
- Returns
- version string
Definition at line 34 of file version.cpp.
◆ get_full_version()
std::string Version::get_full_version |
( |
| ) |
|
|
static |
Returns the complete version string.
Something like: X.Y.Z-GIT_SHA1
Definition at line 80 of file version.cpp.
◆ get_short_version()
std::string Version::get_short_version |
( |
| ) |
|
|
static |
◆ isVersionValid()
bool Version::isVersionValid |
( |
const std::string & |
v | ) |
|
|
static |
check validity of a semver version string
- See also
- getVersionString()
- Returns
- true if the version is valid
Definition at line 74 of file version.cpp.
◆ versionCompare()
int Version::versionCompare |
( |
std::string |
a, |
|
|
std::string |
b |
|
) |
| |
|
static |
compare two version strings using semver v2.0.0
- See also
- getVersionString()
- Returns
- 0 on match, -1 if a older than b, 1 if a is newer than b
Definition at line 51 of file version.cpp.
◆ Major
const int Leosac::Tools::Version::Major = LEOSAC_VERSION_MAJOR |
|
staticprivate |
◆ Minor
const int Leosac::Tools::Version::Minor = LEOSAC_VERSION_MINOR |
|
staticprivate |
◆ Patch
const int Leosac::Tools::Version::Patch = LEOSAC_VERSION_PATCH |
|
staticprivate |
◆ validChars
const std::string Leosac::Tools::Version::validChars |
|
staticprivate |
The documentation for this class was generated from the following files: