Operating System Simulator Plugin  3.5.1
Unreal Engine plugin that simulates an Operating System Environment
Loading...
Searching...
No Matches
FOperatingSystemVersion Struct Reference

Represents an operating system version containing major, minor, and patch numbers. More...

#include "OperatingSystemVersion.h"

Public Member Functions

 GENERATED_BODY ()
 
FORCEINLINE bool IsValid () const
 Checks if this version is valid.
 
FORCEINLINE FString ToString () const
 Returns a string representation of the operating system version in the format "MAJOR.MINOR.PATCH".
 
FString ToString (const bool bIgnorePatch) const
 Returns a string representation of the operating system version.
 
FORCEINLINE bool operator== (const FOperatingSystemVersion &Other) const
 
FORCEINLINE bool operator< (const FOperatingSystemVersion &Other) const
 
FORCEINLINE bool operator> (const FOperatingSystemVersion &Other) const
 
 FOperatingSystemVersion ()
 
 FOperatingSystemVersion (const uint8 Major)
 
 FOperatingSystemVersion (const uint8 Major, const uint8 Minor)
 
 FOperatingSystemVersion (const uint8 Major, const uint8 Minor, const uint8 Patch)
 

Detailed Description

Represents an operating system version containing major, minor, and patch numbers.

Constructor & Destructor Documentation

◆ FOperatingSystemVersion() [1/4]

FOperatingSystemVersion::FOperatingSystemVersion ( )
inline

◆ FOperatingSystemVersion() [2/4]

FOperatingSystemVersion::FOperatingSystemVersion ( const uint8 Major)
inlineexplicit

◆ FOperatingSystemVersion() [3/4]

FOperatingSystemVersion::FOperatingSystemVersion ( const uint8 Major,
const uint8 Minor )
inline

◆ FOperatingSystemVersion() [4/4]

FOperatingSystemVersion::FOperatingSystemVersion ( const uint8 Major,
const uint8 Minor,
const uint8 Patch )
inline

Member Function Documentation

◆ GENERATED_BODY()

FOperatingSystemVersion::GENERATED_BODY ( )

◆ IsValid()

FORCEINLINE bool FOperatingSystemVersion::IsValid ( ) const
inline

Checks if this version is valid.

A version is considered valid if any of the following conditions are met:

  • Major number is greater than 0
  • Minor number is greater than 0
  • Patch number is greater than 0
Returns
True if the version is valid, false otherwise.

◆ operator<()

FORCEINLINE bool FOperatingSystemVersion::operator< ( const FOperatingSystemVersion & Other) const
inline

◆ operator==()

FORCEINLINE bool FOperatingSystemVersion::operator== ( const FOperatingSystemVersion & Other) const
inline

◆ operator>()

FORCEINLINE bool FOperatingSystemVersion::operator> ( const FOperatingSystemVersion & Other) const
inline

◆ ToString() [1/2]

FORCEINLINE FString FOperatingSystemVersion::ToString ( ) const
inline

Returns a string representation of the operating system version in the format "MAJOR.MINOR.PATCH".

Returns
A string representing the operating system version.
Here is the caller graph for this function:

◆ ToString() [2/2]

FString FOperatingSystemVersion::ToString ( const bool bIgnorePatch) const
inline

Returns a string representation of the operating system version.

This method returns a string representation of the operating system version. If the optional parameter bIgnorePatch is set to true, the patch number will be omitted from the string. The string format is "MAJOR.MINOR.PATCH".

Parameters
bIgnorePatch(optional) Whether to ignore the patch number in the string representation. Default is false.
Returns
A string representing the operating system version.

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