Semantic Version data.
More...
|
| | Version (int major, int minor, int patch, const std::string &prerelease_tag="", int prerelease=0) |
| | 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 version.
|
| |
| std::string | ToString () const |
| |
◆ Version()
| Mila::Version::Version |
( |
int |
major, |
|
|
int |
minor, |
|
|
int |
patch, |
|
|
const std::string & |
prerelease_tag = "", |
|
|
int |
prerelease = 0 |
|
) |
| |
|
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 |
| prerelease | 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 version.
- Returns
- Optional pre-release version
◆ 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_
| int Mila::Version::pre_release_ |
|
private |
◆ pre_release_tag_
| std::string Mila::Version::pre_release_tag_ |
|
private |
The documentation for this struct was generated from the following file: