PLCnext API Documentation  22.9.0.33
Public Member Functions | List of all members
Arp::System::Rsc::Services::RscVersion Class Reference

Specifies a version with 4 version numbers and is marshalled to .NET type System.Version. More...

#include <RscVersion.hpp>

Public Member Functions

 RscVersion (void)=default
 Constructs a zero'ed RscVersion instance. More...
 
 RscVersion (int32 major, int32 minor, int32 revision, int32 build)
 Constructs a RscVersion instance by the given arguments. More...
 
 RscVersion (const Version &version)
 Constructs a RscVersion instance by the given argument. More...
 
 RscVersion (const RscVersion &arg)=default
 Copy constructor. More...
 
 RscVersion (RscVersion &&arg)=default
 Move constructor. More...
 
RscVersionoperator= (const RscVersion &arg)=default
 Assignment operator. More...
 
 ~RscVersion (void)=default
 Destructs this instance and frees all resources. More...
 
int32 GetMajor (void) const
 Gets the major version. More...
 
int32 GetMinor (void) const
 Gets the minor version. More...
 
int32 GetRevision (void) const
 Gets the revision version. More...
 
int32 GetBuild (void) const
 Gets the build version. More...
 
Version ToVersion (void) const
 Converts this instance into a Arp::Version. More...
 
String ToString (void) const
 Converts this instance into a String. More...
 
void Read (RscReader &reader)
 Reads this instance from the given RscReader. More...
 
void Write (RscWriter &writer) const
 Writes this instance to the given RscWriter. More...
 

Detailed Description

Specifies a 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 minjor version, 3 is the revision version and 4 is the build version,

Constructor & Destructor Documentation

◆ RscVersion() [1/5]

Arp::System::Rsc::Services::RscVersion::RscVersion ( void  )
default

Constructs a zero'ed RscVersion instance.

◆ RscVersion() [2/5]

Arp::System::Rsc::Services::RscVersion::RscVersion ( int32  major,
int32  minor,
int32  revision,
int32  build 
)
inline

Constructs a RscVersion instance by the given arguments.

Parameters
majorThe major version.
minorThe minor version.
revisionThe revision version.
buildThe build version.

◆ RscVersion() [3/5]

Arp::System::Rsc::Services::RscVersion::RscVersion ( const Version version)
inline

Constructs a RscVersion instance by the given argument.

Parameters
versionThe Arp version to copy the version numbers from.

◆ RscVersion() [4/5]

Arp::System::Rsc::Services::RscVersion::RscVersion ( const RscVersion arg)
default

Copy constructor.

◆ RscVersion() [5/5]

Arp::System::Rsc::Services::RscVersion::RscVersion ( RscVersion &&  arg)
default

Move constructor.

◆ ~RscVersion()

Arp::System::Rsc::Services::RscVersion::~RscVersion ( void  )
default

Destructs this instance and frees all resources.

Member Function Documentation

◆ GetBuild()

int32 Arp::System::Rsc::Services::RscVersion::GetBuild ( void  ) const
inline

Gets the build version.

◆ GetMajor()

int32 Arp::System::Rsc::Services::RscVersion::GetMajor ( void  ) const
inline

Gets the major version.

◆ GetMinor()

int32 Arp::System::Rsc::Services::RscVersion::GetMinor ( void  ) const
inline

Gets the minor version.

◆ GetRevision()

int32 Arp::System::Rsc::Services::RscVersion::GetRevision ( void  ) const
inline

Gets the revision version.

◆ operator=()

RscVersion& Arp::System::Rsc::Services::RscVersion::operator= ( const RscVersion arg)
default

Assignment operator.

◆ Read()

void Arp::System::Rsc::Services::RscVersion::Read ( RscReader reader)

Reads this instance from the given RscReader.

Parameters
readerThe RscReader to read this instance from.

◆ ToString()

String Arp::System::Rsc::Services::RscVersion::ToString ( void  ) const

Converts this instance into a String.

Returns
The String representing this instance.

◆ ToVersion()

Version Arp::System::Rsc::Services::RscVersion::ToVersion ( void  ) const
inline

Converts this instance into a Arp::Version.

Returns
The Arp::Version representing this instance.

◆ Write()

void Arp::System::Rsc::Services::RscVersion::Write ( RscWriter writer) const

Writes this instance to the given RscWriter.

Parameters
writerThe RscWriter to write this instance to.

The documentation for this class was generated from the following file: