UOperatingSystemBaseHardware
#include <OperatingSystemSimulator/Public/Hardware/OperatingSystemBaseHardware.h>class UOperatingSystemBaseHardwareDefined in OperatingSystemBaseHardware.h:19
Inherits:
UObjectSubclassed by:UOperatingSystemCPU,UOperatingSystemGPU,UOperatingSystemHDD,UOperatingSystemMBB,UOperatingSystemPSU,UOperatingSystemRAM
Inheritance diagram
Section titled “Inheritance diagram”---
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
Class detail
Section titled “Class detail”---
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.
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
UOperatingSystemBaseHardware | ||
FText | GetHardwareName const inline | Returns the name of the hardware. |
FText | GetHardwareMadeBy const inline | Retrieves the manufacturer of the hardware. |
FText | GetModelNumber const inline | This method returns the model number of the hardware. |
FString | GetHardwareNameAsString const inline | Returns the name of the hardware as a string. |
FGameplayTag | GetHardwareTag const inline | Returns the hardware tag associated with the hardware object. |
UOperatingSystemBaseHardware
Section titled “UOperatingSystemBaseHardware”UOperatingSystemBaseHardware()Defined in OperatingSystemBaseHardware.h:45
References
Section titled “References”GetHardwareName
Section titled “GetHardwareName”const inline
inline FText GetHardwareName() constDefined in OperatingSystemBaseHardware.h:95 Returns the name of the hardware.
Returns
Section titled “Returns”The name of the hardware as a FText object.
GetHardwareMadeBy
Section titled “GetHardwareMadeBy”const inline
inline FText GetHardwareMadeBy() constDefined in OperatingSystemBaseHardware.h:103 Retrieves the manufacturer of the hardware.
Returns
Section titled “Returns”The manufacturer of the hardware as a text string.
GetModelNumber
Section titled “GetModelNumber”const inline
inline FText GetModelNumber() constDefined in OperatingSystemBaseHardware.h:111 This method returns the model number of the hardware.
Returns
Section titled “Returns”The model number of the hardware as a FText object.
GetHardwareNameAsString
Section titled “GetHardwareNameAsString”const inline
inline FString GetHardwareNameAsString() constDefined 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.
Returns
Section titled “Returns”The name of the hardware as a string.
GetHardwareTag
Section titled “GetHardwareTag”const inline
inline FGameplayTag GetHardwareTag() constDefined 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.
Returns
Section titled “Returns”The hardware tag associated with the hardware object.
Protected Attributes
Section titled “Protected Attributes”| Return | Name | Description |
|---|---|---|
FText | Name | Name of this hardware. |
FText | MadeBy | Which company made this? |
FText | ModelNumber | A model number. |
FGameplayTag | HardwareTag | A tag that identifies this hardware |
bool | bHasBlueprintValidateFunction |
FText NameDefined in OperatingSystemBaseHardware.h:27 Name of this hardware.
Referenced by
Section titled “Referenced by”MadeBy
Section titled “MadeBy”FText MadeByDefined in OperatingSystemBaseHardware.h:31 Which company made this?
ModelNumber
Section titled “ModelNumber”FText ModelNumberDefined in OperatingSystemBaseHardware.h:35 A model number.
HardwareTag
Section titled “HardwareTag”FGameplayTag HardwareTagDefined in OperatingSystemBaseHardware.h:39 A tag that identifies this hardware
Referenced by
Section titled “Referenced by”OnValidateOnValidateOnValidateOnValidateOnValidateOnValidateUOperatingSystemCPUUOperatingSystemGPUUOperatingSystemMBBUOperatingSystemPSUUOperatingSystemRAMValidate
bHasBlueprintValidateFunction
Section titled “bHasBlueprintValidateFunction”bool bHasBlueprintValidateFunctionDefined in OperatingSystemBaseHardware.h:41
Referenced by
Section titled “Referenced by”Protected Methods
Section titled “Protected Methods”| Return | Name | Description |
|---|---|---|
bool | Validate const | Validates the current state of the operating system hardware object. |
bool | OnValidate virtual const | This method is called to validate the current state of the object. |
bool | K2_OnValidate const | 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. |
Validate
Section titled “Validate”const
bool Validate(FGenericError & OutError) constDefined 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.
Parameters
Section titled “Parameters”OutErrorA reference to a FGenericError object to receive any error messages if the validation fails.
Returns
Section titled “Returns”true if the object’s state is valid, false otherwise.
References
Section titled “References”bHasBlueprintValidateFunctionHardwareTagIsOperatingSystemTagValidK2_OnValidateMAKE_ERRORNameOnValidate
OnValidate
Section titled “OnValidate”virtual const
virtual bool OnValidate(FGenericError & OutError) constDefined in OperatingSystemBaseHardware.h:69 This method is called to validate the current state of the object.
Parameters
Section titled “Parameters”OutErrorA reference to a FGenericError object to receive any error messages if the validation fails.
Returns
Section titled “Returns”true if the object’s state is valid, false otherwise.
Referenced by
Section titled “Referenced by”References
Section titled “References”MAKE_ERROR
Reimplemented by
Section titled “Reimplemented by”K2_OnValidate
Section titled “K2_OnValidate”const
bool K2_OnValidate(FGenericError & OutError) constDefined 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.
Parameters
Section titled “Parameters”OutErrorA reference to a FGenericError object to receive any error messages if the validation fails.
Returns
Section titled “Returns”true if the object’s state is valid, false otherwise.
Referenced by
Section titled “Referenced by”Private Methods
Section titled “Private Methods”| Return | Name | Description |
|---|---|---|
bool | K2_OnValidate_Implementation const |
K2_OnValidate_Implementation
Section titled “K2_OnValidate_Implementation”const
bool K2_OnValidate_Implementation(FGenericError & OutError) constDefined in OperatingSystemBaseHardware.h:85