Skip to content

UOperatingSystemBaseHardware

#include <OperatingSystemSimulator/Public/Hardware/OperatingSystemBaseHardware.h>
class UOperatingSystemBaseHardware

Defined in OperatingSystemBaseHardware.h:19

Inherits: UObject Subclassed by: UOperatingSystemCPU, UOperatingSystemGPU, UOperatingSystemHDD, UOperatingSystemMBB, UOperatingSystemPSU, UOperatingSystemRAM

---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemBaseHardware["UOperatingSystemBaseHardware"]
  class UObject["UObject"]
  UObject <|-- UOperatingSystemBaseHardware
  class UOperatingSystemCPU["UOperatingSystemCPU"]
  UOperatingSystemBaseHardware <|-- UOperatingSystemCPU
  class UOperatingSystemGPU["UOperatingSystemGPU"]
  UOperatingSystemBaseHardware <|-- UOperatingSystemGPU
  class UOperatingSystemHDD["UOperatingSystemHDD"]
  UOperatingSystemBaseHardware <|-- UOperatingSystemHDD
  class UOperatingSystemMBB["UOperatingSystemMBB"]
  UOperatingSystemBaseHardware <|-- UOperatingSystemMBB
  class UOperatingSystemPSU["UOperatingSystemPSU"]
  UOperatingSystemBaseHardware <|-- UOperatingSystemPSU
  class UOperatingSystemRAM["UOperatingSystemRAM"]
  UOperatingSystemBaseHardware <|-- UOperatingSystemRAM
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class UOperatingSystemBaseHardware {
    +UOperatingSystemBaseHardware()
    +GetHardwareName() const FText
    +GetHardwareMadeBy() const FText
    +GetModelNumber() const FText
    +GetHardwareNameAsString() const FString
    +GetHardwareTag() const FGameplayTag
    +Name : FText
    +MadeBy : FText
    +ModelNumber : FText
    +HardwareTag : FGameplayTag
    +bHasBlueprintValidateFunction : bool
    +Validate(FGenericError &OutError) const bool
    +OnValidate(FGenericError &OutError) const bool
    +K2_OnValidate(FGenericError &OutError) const bool
    +K2_OnValidate_Implementation(FGenericError &OutError) const bool
  }

Base class for operating system hardware.

This class represents a base class for operating system hardware objects. It contains properties and methods that are common for all types of hardware.

ReturnNameDescription
UOperatingSystemBaseHardware
FTextGetHardwareName const inlineReturns the name of the hardware.
FTextGetHardwareMadeBy const inlineRetrieves the manufacturer of the hardware.
FTextGetModelNumber const inlineThis method returns the model number of the hardware.
FStringGetHardwareNameAsString const inlineReturns the name of the hardware as a string.
FGameplayTagGetHardwareTag const inlineReturns the hardware tag associated with the hardware object.

UOperatingSystemBaseHardware()

Defined in OperatingSystemBaseHardware.h:45


const inline

inline FText GetHardwareName() const

Defined in OperatingSystemBaseHardware.h:95 Returns the name of the hardware.

The name of the hardware as a FText object.


const inline

inline FText GetHardwareMadeBy() const

Defined in OperatingSystemBaseHardware.h:103 Retrieves the manufacturer of the hardware.

The manufacturer of the hardware as a text string.


const inline

inline FText GetModelNumber() const

Defined in OperatingSystemBaseHardware.h:111 This method returns the model number of the hardware.

The model number of the hardware as a FText object.


const inline

inline FString GetHardwareNameAsString() const

Defined in OperatingSystemBaseHardware.h:120 Returns the name of the hardware as a string.

This method returns the name of the hardware object as a string. It converts the FText value of the name property to a string and returns it.

The name of the hardware as a string.


const inline

inline FGameplayTag GetHardwareTag() const

Defined in OperatingSystemBaseHardware.h:131 Returns the hardware tag associated with the hardware object.

This method returns the hardware tag associated with the hardware object. The hardware tag is a unique identifier that can be used to distinguish between different types of hardware. It is represented as a FGameplayTag object.

The hardware tag associated with the hardware object.

ReturnNameDescription
FTextNameName of this hardware.
FTextMadeByWhich company made this?
FTextModelNumberA model number.
FGameplayTagHardwareTagA tag that identifies this hardware
boolbHasBlueprintValidateFunction

FText Name

Defined in OperatingSystemBaseHardware.h:27 Name of this hardware.


FText MadeBy

Defined in OperatingSystemBaseHardware.h:31 Which company made this?


FText ModelNumber

Defined in OperatingSystemBaseHardware.h:35 A model number.


FGameplayTag HardwareTag

Defined in OperatingSystemBaseHardware.h:39 A tag that identifies this hardware


bool bHasBlueprintValidateFunction

Defined in OperatingSystemBaseHardware.h:41

ReturnNameDescription
boolValidate constValidates the current state of the operating system hardware object.
boolOnValidate virtual constThis method is called to validate the current state of the object.
boolK2_OnValidate constThis method is called to validate the current state of the object. It is a BlueprintNativeEvent, which means that it can be overridden in Blueprint subclasses. You must NOT call super (or parent in Blueprint) on this event since native event will always return false.

const

bool Validate(FGenericError & OutError) const

Defined in OperatingSystemBaseHardware.h:61 Validates the current state of the operating system hardware object.

This method is called to validate the current state of the operating system hardware object. It checks if the name and tag of the hardware are valid, and optionally calls the K2_On Validate or OnValidate method to perform additional validation.

You must NOT call super (or parent in Blueprint) on this event since native event will always return false.

  • OutError A reference to a FGenericError object to receive any error messages if the validation fails.

true if the object’s state is valid, false otherwise.


virtual const

virtual bool OnValidate(FGenericError & OutError) const

Defined in OperatingSystemBaseHardware.h:69 This method is called to validate the current state of the object.

  • OutError A reference to a FGenericError object to receive any error messages if the validation fails.

true if the object’s state is valid, false otherwise.

  • MAKE_ERROR

const

bool K2_OnValidate(FGenericError & OutError) const

Defined in OperatingSystemBaseHardware.h:80 This method is called to validate the current state of the object. It is a BlueprintNativeEvent, which means that it can be overridden in Blueprint subclasses. You must NOT call super (or parent in Blueprint) on this event since native event will always return false.

  • OutError A reference to a FGenericError object to receive any error messages if the validation fails.

true if the object’s state is valid, false otherwise.

ReturnNameDescription
boolK2_OnValidate_Implementation const

const

bool K2_OnValidate_Implementation(FGenericError & OutError) const

Defined in OperatingSystemBaseHardware.h:85