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

This class represents a unique identifier for an operating system. More...

#include "OperatingSystemUniqueId.h"

Public Member Functions

 FOperatingSystemUniqueId ()
 
 FOperatingSystemUniqueId (const FString &UniqueId)
 
FORCEINLINE bool IsValid () const
 Check whether the unique identifier is valid.
 
FORCEINLINE bool GetID (FString &OutID) const
 Retrieves the unique identifier.
 
FORCEINLINE FString ToString () const
 Converts the unique identifier to a string representation.
 
FORCEINLINE bool operator== (const FOperatingSystemUniqueId &Other) const
 

Static Public Member Functions

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ FOperatingSystemUniqueId() [1/2]

FOperatingSystemUniqueId::FOperatingSystemUniqueId ( )
inline

◆ FOperatingSystemUniqueId() [2/2]

FOperatingSystemUniqueId::FOperatingSystemUniqueId ( const FString & UniqueId)
inline

Member Function Documentation

◆ GenerateNewId()

static FORCEINLINE FOperatingSystemUniqueId FOperatingSystemUniqueId::GenerateNewId ( )
inlinestatic

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.
Here is the caller graph for this function:

◆ 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
OutIDThe 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.
Here is the caller graph for this function:

◆ operator==()

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

◆ 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.
Here is the caller graph for this function:

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