Represents an operating system version containing major, minor, and patch numbers.
More...
#include "OperatingSystemVersion.h"
Represents an operating system version containing major, minor, and patch numbers.
◆ 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 |
◆ 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<()
◆ operator==()
◆ operator>()
◆ 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.
◆ 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: