Extended class for handling app versions, compliant with Semantic Versioning 2.0.0 Format: Major.Minor.Patch[PrereleaseIdentifier].Build[BuildMetadata], see https://semver.org For example: "1.3.4573-alpha.3+sha:dff8df7gdsvnx", "2.13.3735b2.0-stable".
More...
#include <LicenseSpring/Version.h>
|
| VersionEx () |
|
| VersionEx (int major, int minor, int patch, char delimeter='.') |
|
| VersionEx (int major, int minor, int patch, int build, char delimeter='.') |
|
| VersionEx (const std::string &version, char delimeter='.') |
|
void | setPrereleaseType (PrereleaseType type) |
|
PrereleaseType | prereleaseType () const |
|
bool | isPrerelease () const |
|
const std::string & | prereleaseVersion () const |
|
void | setPrereleaseVersion (const std::string &version) |
|
const std::string & | buildMetadata () const |
|
void | setBuildMetadata (const std::string &data) |
|
std::string | toString () const override |
|
int | compare (const VersionBase &baseVer) const override |
|
| Version () |
|
| Version (int major, int minor, char delimeter='.') |
|
| Version (int major, int minor, int patch, char delimeter='.') |
|
| Version (int major, int minor, int patch, int build, char delimeter='.') |
|
| Version (const std::string &version, char delimeter='.') |
|
int | patchVersion () const |
|
int | buildVersion () const |
|
bool | hasPatchVersion () const |
|
bool | hasBuildVersion () const |
|
void | setPatchVersion (int number) |
|
void | setBuildVersion (int number) |
|
size_t | length () const override |
|
| VersionBase () |
|
| VersionBase (int major, int minor, char delimeter='.') |
|
virtual | ~VersionBase ()=default |
|
int | majorVersion () const |
|
int | minorVersion () const |
|
char | delimeter () const |
|
void | setDelimeter (char delimeter) |
|
size_t | size () const |
|
| operator std::string () const |
|
bool | operator== (const VersionBase &version) const |
|
bool | operator!= (const VersionBase &version) const |
|
bool | operator< (const VersionBase &version) const |
|
bool | operator> (const VersionBase &version) const |
|
bool | operator<= (const VersionBase &version) const |
|
bool | operator>= (const VersionBase &version) const |
|
Extended class for handling app versions, compliant with Semantic Versioning 2.0.0 Format: Major.Minor.Patch[PrereleaseIdentifier].Build[BuildMetadata], see https://semver.org For example: "1.3.4573-alpha.3+sha:dff8df7gdsvnx", "2.13.3735b2.0-stable".
Definition at line 147 of file Version.h.
◆ VersionEx() [1/4]
LicenseSpring::VersionEx::VersionEx |
( |
| ) |
|
◆ VersionEx() [2/4]
LicenseSpring::VersionEx::VersionEx |
( |
int |
major, |
|
|
int |
minor, |
|
|
int |
patch, |
|
|
char |
delimeter = '.' |
|
) |
| |
◆ VersionEx() [3/4]
LicenseSpring::VersionEx::VersionEx |
( |
int |
major, |
|
|
int |
minor, |
|
|
int |
patch, |
|
|
int |
build, |
|
|
char |
delimeter = '.' |
|
) |
| |
◆ VersionEx() [4/4]
LicenseSpring::VersionEx::VersionEx |
( |
const std::string & |
version, |
|
|
char |
delimeter = '.' |
|
) |
| |
◆ setPrereleaseType()
void LicenseSpring::VersionEx::setPrereleaseType |
( |
PrereleaseType |
type | ) |
|
|
inline |
◆ prereleaseType()
◆ isPrerelease()
bool LicenseSpring::VersionEx::isPrerelease |
( |
| ) |
const |
|
inline |
◆ prereleaseVersion()
const std::string & LicenseSpring::VersionEx::prereleaseVersion |
( |
| ) |
const |
|
inline |
◆ setPrereleaseVersion()
void LicenseSpring::VersionEx::setPrereleaseVersion |
( |
const std::string & |
version | ) |
|
|
inline |
◆ buildMetadata()
const std::string & LicenseSpring::VersionEx::buildMetadata |
( |
| ) |
const |
|
inline |
◆ setBuildMetadata()
void LicenseSpring::VersionEx::setBuildMetadata |
( |
const std::string & |
data | ) |
|
|
inline |
◆ toString()
std::string LicenseSpring::VersionEx::toString |
( |
| ) |
const |
|
overridevirtual |
◆ compare()
int LicenseSpring::VersionEx::compare |
( |
const VersionBase & |
baseVer | ) |
const |
|
overridevirtual |
◆ fromString()
static VersionEx LicenseSpring::VersionEx::fromString |
( |
const std::string & |
input, |
|
|
char |
delimeter = '.' |
|
) |
| |
|
static |
The documentation for this class was generated from the following file: