#include <MSemanticVersionNumber.h>
|
| | SemanticVersionNumber (int major=0, int minor=0, int patch=0, const std::string &releaseState="") |
| |
|
std::string | GetVersionString () const |
| | Get string rep of version number.
|
| |
|
int | GetMajor () const |
| | Major version, only increase for incompatible API changes.
|
| |
|
int | GetMinor () const |
| | Minor version, increase for backwards compatible added/changed functionality.
|
| |
|
int | GetPatch () const |
| | Patch version, increase for bugfixes not affectiong API/interface.
|
| |
|
void | SetMajor (int major) |
| |
|
void | SetMinor (int minor) |
| |
|
void | SetPatch (int patch) |
| |
|
const std::string & | GetReleaseState () const |
| | Release state string (optional)
|
| |
|
int | CompareTo (const SemanticVersionNumber &other) const |
| |
|
bool | Equals (const SemanticVersionNumber &other) const |
| |
|
bool | operator== (const SemanticVersionNumber &other) const |
| |
|
bool | operator!= (const SemanticVersionNumber &other) const |
| |
|
unsigned int | getHashKey () const |
| |
◆ SemanticVersionNumber()
| Maria::SemanticVersionNumber::SemanticVersionNumber |
( |
int |
major = 0, |
|
|
int |
minor = 0, |
|
|
int |
patch = 0, |
|
|
const std::string & |
releaseState = "" |
|
) |
| |
|
inline |
Constructor
- Parameters
-
| major | Major version, incompatible API changes |
| minor | Minor version, backwards compatible added/changed functionality |
| patch | Backwards compatible bugfixes |
| releaseState | String identifying (pre) release state, ex "RC", "DRAFT". If not set, "release" type version is assumed (default) |
◆ Compare()
Compare version numbers "a" and "b"
- Parameters
-
| name="a">First | version number |
| name="b">Second | version number |
- Returns
- -1 if a less than b, 0 if a equals b, 1 if a larger than b
◆ Parse()
Parse string rep of version number
- Parameters
-
| verString | String on format MAJOR.MINOR.PATCH[-RELEASESTATE] |
The documentation for this class was generated from the following files:
- Native/MariaNative/MCommon/MSemanticVersionNumber.h
- Native/MariaNative/MCommon/MSemanticVersionNumber.cpp