|
PLCnext API Documentation 25.6.0.37
|
Specifies a complex version with 4 version numbers and is marshalled to .NET type System.Version.
More...
#include <RscVersion.hpp>
Public Types | |
| using | Value = Version::Value |
| The value type of version numbers. | |
Public Member Functions | |
| RscVersion (void) | |
| Constructs a zeroed RscVersion instance. | |
| RscVersion (Value major, Value minor, Value revision, Value build) | |
| Constructs a RscVersion instance by the given arguments. More... | |
| RscVersion (const Version &version) | |
| Constructs a RscVersion instance by the given argument. More... | |
| Value | GetMajor (void) const |
| Gets the major version. More... | |
| Value | GetMinor (void) const |
| Gets the minor version. More... | |
| Value | GetRevision (void) const |
| Gets the revision version. More... | |
| Value | GetBuild (void) const |
| Gets the build version. More... | |
| String | ToString (void) const |
| Converts this instance into a String. More... | |
| Version | ToVersion (void) const |
| Converts this instance into a Arp::Version. More... | |
| void | Read (RscReader &reader) |
| Reads this instance from the RscReader. More... | |
| void | Write (RscWriter &writer) const |
| Writes this instance to the given RscWriter. More... | |
Friends | |
| ARP_EXPORT bool | operator== (const RscVersion &left, const RscVersion &right) |
| Compares the left argument to the right argument on equality More... | |
| ARP_EXPORT std::strong_ordering | operator<=> (const RscVersion &left, const RscVersion &right) |
| Three-way compares the left argument to the right argument More... | |
| ARP_EXPORT std::ostream & | operator<< (std::ostream &os, const RscVersion &version) |
| The ostream operator is used for logging and string formatting. More... | |
| ARP_EXPORT std::istream & | operator>> (std::istream &is, RscVersion &version) |
| The istream operator is used for string parsing. More... | |
Specifies a complex version with 4 version numbers and is marshalled to .NET type System.Version.
Specifies a version with 4 version numbers like 1.2.3.4, where 1 is the major version, 2 is the minor version, 3 is the revision version and 4 is the build version,
| Arp::Base::Rsc::Commons::RscVersion::RscVersion | ( | Value | major, |
| Value | minor, | ||
| Value | revision, | ||
| Value | build | ||
| ) |
Constructs a RscVersion instance by the given arguments.
| major | The major version. |
| minor | The minor version. |
| revision | The revision version. |
| build | The build version. |
| Arp::Base::Rsc::Commons::RscVersion::RscVersion | ( | const Version & | version | ) |
Constructs a RscVersion instance by the given argument.
| version | The Arp version to copy the version numbers from. |
| RscVersion::Value Arp::Base::Rsc::Commons::RscVersion::GetBuild | ( | void | ) | const |
Gets the build version.
| RscVersion::Value Arp::Base::Rsc::Commons::RscVersion::GetMajor | ( | void | ) | const |
Gets the major version.
| RscVersion::Value Arp::Base::Rsc::Commons::RscVersion::GetMinor | ( | void | ) | const |
Gets the minor version.
| RscVersion::Value Arp::Base::Rsc::Commons::RscVersion::GetRevision | ( | void | ) | const |
Gets the revision version.
| void Arp::Base::Rsc::Commons::RscVersion::Read | ( | RscReader & | reader | ) |
Reads this instance from the RscReader.
| reader | The RscReader to read this instance from. |
| String Arp::Base::Rsc::Commons::RscVersion::ToString | ( | void | ) | const |
Converts this instance into a String.
| Version Arp::Base::Rsc::Commons::RscVersion::ToVersion | ( | void | ) | const |
Converts this instance into a Arp::Version.
| void Arp::Base::Rsc::Commons::RscVersion::Write | ( | RscWriter & | writer | ) | const |
Writes this instance to the given RscWriter.
| writer | The RscWriter to write this instance to. |
|
friend |
The ostream operator is used for logging and string formatting.
| os | The stream to write to. |
| version | The version to write. |
|
friend |
Three-way compares the left argument to the right argument
| left | The left argument to compare the right argument to. |
| right | The right argument to be compared to the left argument. |
std::strong_ordering result valueOther comparison operators like <, <=, >, >= will be generated by the compiler based on this function.
|
friend |
Compares the left argument to the right argument on equality
| left | The left argument to compare the right argument to. |
| right | The right argument to be compared to the left argument. |
true if the left argument is equal to the right argument, otherwise false.
|
friend |
The istream operator is used for string parsing.
| is | The stream to read from. |
| version | The version to read. |