Semantic Version data.
More...
|
| | Version (int major, int minor, int patch, const std::string &prerelease_tag="") |
| | Semantic Version Constructor.
|
| int | getMajor () |
| | Gets the major version number.
|
| int | getMinor () |
| | Gets the minor version number.
|
| int | getPatch () |
| | Gets the patch version number.
|
| std::string | getPreRelease () |
| | Gets the pre-release tag.
|
| std::string | toString () const |
◆ Version()
| Mila::Version::Version |
( |
int | major, |
|
|
int | minor, |
|
|
int | patch, |
|
|
const std::string & | prerelease_tag = "" ) |
|
inline |
Semantic Version Constructor.
- Parameters
-
| major | Major API version |
| minor | Minor version for functional changes |
| patch | Patch for bug fixes |
| prerelease_tag | Optional pre-release text |
◆ getMajor()
| int Mila::Version::getMajor |
( |
| ) |
|
|
inline |
Gets the major version number.
- Returns
- Major version
◆ getMinor()
| int Mila::Version::getMinor |
( |
| ) |
|
|
inline |
Gets the minor version number.
- Returns
- Minor version
◆ getPatch()
| int Mila::Version::getPatch |
( |
| ) |
|
|
inline |
Gets the patch version number.
- Returns
- Patch version
◆ getPreRelease()
| std::string Mila::Version::getPreRelease |
( |
| ) |
|
|
inline |
Gets the pre-release tag.
- Returns
- Optional pre-release tag
◆ toString()
| std::string Mila::Version::toString |
( |
| ) |
const |
|
inline |
◆ major_
| int Mila::Version::major_ |
|
private |
◆ minor_
| int Mila::Version::minor_ |
|
private |
◆ patch_
| int Mila::Version::patch_ |
|
private |
◆ pre_release_tag_
| std::string Mila::Version::pre_release_tag_ |
|
private |
The documentation for this struct was generated from the following file: