Public Member Functions | |
| Version (VersionComponent majorNumber, VersionComponent minorNumber, VersionComponent improvement, VersionComponent build) | |
| VersionComponent | majorNumber () const |
| VersionComponent | minorNumber () const |
| VersionComponent | improvement () const |
| VersionComponent | build () const |
| bool | operator== (const Version &) const |
| bool | operator!= (const Version &) const |
| bool | operator< (const Version &) const |
| bool | operator> (const Version &) const |
| void | toString (std::string &) const |
| std::string | toString () const |
Static Public Member Functions | |
| static bool | parse (const char *, size_t, Version &) |
| static Version | current () |
Provides an access to single components which compound the whole version, comparing and serialization/deserialization facilities.
| Version | ( | VersionComponent | majorNumber, |
| VersionComponent | minorNumber, | ||
| VersionComponent | improvement, | ||
| VersionComponent | build ) |
Initializes instances from all the components.
| VersionComponent build | ( | ) | const |
The 'build number' component of the version.
|
static |
Identifies the current version of the product.
| VersionComponent improvement | ( | ) | const |
The 'improvement' component of the version.
| VersionComponent majorNumber | ( | ) | const |
The 'major' component of the version.
| VersionComponent minorNumber | ( | ) | const |
The 'minor' component of the version.
| bool operator!= | ( | const Version & | ) | const |
Compares with other instance for the inequality.
| bool operator< | ( | const Version & | ) | const |
Checks whether the version is less then the other.
| bool operator== | ( | const Version & | ) | const |
Compares with other instance for the equality.
| bool operator> | ( | const Version & | ) | const |
Checks whether the version is grater then the other.
|
static |
Extracts the version from the point-separated presentation.
Updates the version parameter if the buffer is parsed successfully.
| std::string toString | ( | ) | const |
Serializes into the point-separated presentation.
| void toString | ( | std::string & | ) | const |
Serializes into the point-separated presentation.