PLCnext API Documentation
22.9.0.33
|
This class represents the version of a special SDK or Arp build. More...
#include <BasicVersion.hpp>
Public Types | |
typedef BasicString< char > | String |
Public Member Functions | |
BasicVersion (void)=default | |
The default constructor constructs an empty and zero'ed version. More... | |
BasicVersion (uint8 majorVersion, const String &state=String(), const String &name=String()) | |
Constructor with arguments to initialize the version instance. More... | |
BasicVersion (uint8 majorVersion, uint8 minorVersion, const String &state=String(), const String &name=String()) | |
Constructor with arguments to initialize the version instance. More... | |
BasicVersion (uint8 majorVersion, uint8 minorVersion, uint8 patchVersion, const String &state=String(), const String &name=String()) | |
Constructor with arguments to initialize the version instance. More... | |
BasicVersion (uint8 majorVersion, uint8 minorVersion, uint8 patchVersion, uint32 buildVersion, const String &state=String(), const String &name=String()) | |
Constructor with arguments to initialize the version instance. More... | |
BasicVersion (const BasicVersion &arg)=default | |
The default copy constructor. More... | |
BasicVersion (BasicVersion &&arg)=default | |
The default move constructor More... | |
BasicVersion & | operator= (const BasicVersion &arg)=default |
The default assignment operator. More... | |
virtual | ~BasicVersion (void)=default |
The default destructor. More... | |
bool | operator== (const BasicVersion &arg) const |
Compares this instance to the given argument on equality More... | |
bool | operator> (const BasicVersion &arg) const |
Compares this instance to the given argument. More... | |
bool | operator< (const BasicVersion &arg) const |
Compares this instance to the given argument. More... | |
bool | operator>= (const BasicVersion &arg) const |
Compares this instance to the given argument. More... | |
bool | operator<= (const BasicVersion &arg) const |
Compares this instance to the given argument. More... | |
String | GetName (void) const |
Gets the name of this released version. More... | |
uint8 | GetMajor (void) const |
Gets the major version. More... | |
uint8 | GetMinor (void) const |
Gets the minor version. More... | |
uint8 | GetPatch (void) const |
Gets the patch version. More... | |
uint32 | GetBuild (void) const |
Gets the build version. More... | |
String | GetState (void) const |
Gets the state of this version. More... | |
String | ToString (void) const |
Converts this version to a string as explained here BasicVersion. More... | |
Static Public Member Functions | |
static BasicVersion | Parse (const String &input) |
Parses the given input string and creates a new version from it. More... | |
static bool | TryParse (const String &input, BasicVersion &result) |
Tries to parse the given input string and to create a new version from it. More... | |
This class represents the version of a special SDK or Arp build.
The version number string is build as follows
Major.Minor.Patch.Build
If the state of the version is not empty, it's appended to the version number. If the name of the version is not empty, the verions format is
Name (Major.Minor.Patch.Build State).
Examples:
1.2.3.456
1.2.3.456 alpha
PLCnext Release 2019 (1.2.3.456 beta)
typedef BasicString<char> Arp::BasicVersion::String |
|
default |
The default constructor constructs an empty and zero'ed version.
|
inline |
Constructor with arguments to initialize the version instance.
Constructor with arguments to initialize the version instance.
majorVersion | The major version. |
state | The state appendix. |
name | The name of the released version. |
|
inline |
Constructor with arguments to initialize the version instance.
Constructor with arguments to initialize the version instance.
majorVersion | The major version. |
minorVersion | The minor version. |
state | The state appendix. |
name | The name of the released version. |
|
inline |
Constructor with arguments to initialize the version instance.
majorVersion | The major version. |
minorVersion | The minor version. |
patchVersion | The patch version. |
state | The state appendix. |
name | The name of the released version. |
|
inline |
Constructor with arguments to initialize the version instance.
majorVersion | The major version. |
minorVersion | The minor version. |
patchVersion | The patch version. |
buildVersion | The build version. |
state | The state appendix. |
name | The name of the released version. |
|
default |
The default copy constructor.
arg | The argument to copy. |
|
default |
The default move constructor
arg | The argument to move. |
|
virtualdefault |
The default destructor.
|
inline |
Gets the build version.
|
inline |
Gets the major version.
|
inline |
Gets the minor version.
|
inline |
Gets the name of this released version.
|
inline |
Gets the patch version.
|
inline |
Gets the state of this version.
|
inline |
Compares this instance to the given argument.
arg | The argument to compare this instance to. |
true
if this instance is less than arg , otherwise false
.
|
inline |
Compares this instance to the given argument.
arg | The argument to compare this instance to. |
true
if this instance is less or equal than arg , otherwise false
.
|
default |
The default assignment operator.
arg | The argument to assign to this instance. |
|
inline |
Compares this instance to the given argument on equality
arg | The argument to compare this instance to. |
true
if this instance is equal to arg , otherwise false
.
|
inline |
Compares this instance to the given argument.
arg | The argument to compare this instance to. |
true
if this instance is greater than arg , otherwise false
.
|
inline |
Compares this instance to the given argument.
arg | The argument to compare this instance to. |
true
if this instance is greater or equal than to arg , otherwise false
.
|
static |
Parses the given input string and creates a new version from it.
input | The input string to parse. |
Exception | If the input string is not valid. |
String Arp::BasicVersion::ToString | ( | void | ) | const |
Converts this version to a string as explained here BasicVersion.
|
static |
Tries to parse the given input string and to create a new version from it.
input | The input string to parse. |
result | The resulting version. |
true
if the given input string could be parsed, otherwise false
.