This class represents a unique identifier for an operating system.
More...
#include "OperatingSystemUniqueId.h"
|
static FORCEINLINE FOperatingSystemUniqueId | GenerateNewId () |
| Generates a new unique identifier for the operating system. This method generates a new unique identifier for the operating system by combining the current date and time with milliseconds.
|
|
This class represents a unique identifier for an operating system.
The FOperatingSystemUniqueId class provides functionality to generate a new unique identifier, as well as check whether the identifier is valid and retrieve its string representation. It also provides comparison operators to compare two identifiers for equality.
◆ FOperatingSystemUniqueId() [1/2]
FOperatingSystemUniqueId::FOperatingSystemUniqueId |
( |
| ) |
|
|
inline |
◆ FOperatingSystemUniqueId() [2/2]
FOperatingSystemUniqueId::FOperatingSystemUniqueId |
( |
const FString & | UniqueId | ) |
|
|
inline |
◆ GenerateNewId()
Generates a new unique identifier for the operating system. This method generates a new unique identifier for the operating system by combining the current date and time with milliseconds.
- Returns
- A new unique identifier generated for the operating system.
◆ GetID()
FORCEINLINE bool FOperatingSystemUniqueId::GetID |
( |
FString & | OutID | ) |
const |
|
inline |
Retrieves the unique identifier.
This method retrieves the unique identifier for the operating system. If the unique identifier is set, it is assigned to the parameter OutID, and the method returns true. Otherwise, OutID is assigned an empty string, and the method returns false.
- Parameters
-
OutID | The output parameter to store the unique identifier. |
- Returns
- True if the unique identifier is set and retrieved successfully, false otherwise.
◆ IsValid()
FORCEINLINE bool FOperatingSystemUniqueId::IsValid |
( |
| ) |
const |
|
inline |
Check whether the unique identifier is valid.
This method checks whether the unique identifier is valid. The identifier is considered valid if it is set.
- Returns
- True if the unique identifier is valid, false otherwise.
◆ operator==()
◆ ToString()
FORCEINLINE FString FOperatingSystemUniqueId::ToString |
( |
| ) |
const |
|
inline |
Converts the unique identifier to a string representation.
This method converts the unique identifier to a string representation. If the unique identifier is set, it assigns it to the variable OutID and returns it. If the unique identifier is not set, it assigns an empty string to the variable OutID and returns it.
- Returns
- The string representation of the unique identifier.
The documentation for this class was generated from the following file: