UOperatingSystemBaseHardware
#include <OperatingSystemSimulator/Public/Hardware/OperatingSystemBaseHardware.h>class UOperatingSystemBaseHardwareDefined in OperatingSystemBaseHardware.h:19
Inherits:
UObjectSubclassed by:UOperatingSystemCPU,UOperatingSystemGPU,UOperatingSystemHDD,UOperatingSystemMBB,UOperatingSystemNetworkCard,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 UOperatingSystemNetworkCard["UOperatingSystemNetworkCard"]
UOperatingSystemBaseHardware <|-- UOperatingSystemNetworkCard
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
+Icon : TSoftObjectPtr< UObject >
+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
}
Caller impact — K2_OnValidate
Section titled “Caller impact — K2_OnValidate”Documented call sites inside the plugin (2):
flowchart LR UOperatingSystemBaseHardware__K2_OnValidate["UOperatingSystemBaseHardware::K2_OnValidate"] UOperatingSystemBaseHardware__UOperatingSystemBaseHardware["UOperatingSystemBaseHardware::UOperatingSystemBaseHardware"] UOperatingSystemBaseHardware__UOperatingSystemBaseHardware --> UOperatingSystemBaseHardware__K2_OnValidate UOperatingSystemBaseHardware__Validate["UOperatingSystemBaseHardware::Validate"] UOperatingSystemBaseHardware__Validate --> UOperatingSystemBaseHardware__K2_OnValidate
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:48
Referenced by
Section titled “Referenced by”References
Section titled “References”bHasBlueprintValidateFunctionHardwareTagIconK2_OnValidateMadeByModelNumberNameUOperatingSystemBaseHardware
GetHardwareName
Section titled “GetHardwareName”const inline
inline FText GetHardwareName() constDefined in OperatingSystemBaseHardware.h:96 Returns the name of the hardware.
Returns
Section titled “Returns”The name of the hardware as a FText object.
Referenced by
Section titled “Referenced by”References
Section titled “References”GetHardwareMadeBy
Section titled “GetHardwareMadeBy”const inline
inline FText GetHardwareMadeBy() constDefined in OperatingSystemBaseHardware.h:104 Retrieves the manufacturer of the hardware.
Returns
Section titled “Returns”The manufacturer of the hardware as a text string.
Referenced by
Section titled “Referenced by”References
Section titled “References”GetModelNumber
Section titled “GetModelNumber”const inline
inline FText GetModelNumber() constDefined in OperatingSystemBaseHardware.h:112 This method returns the model number of the hardware.
Returns
Section titled “Returns”The model number of the hardware as a FText object.
Referenced by
Section titled “Referenced by”References
Section titled “References”GetHardwareNameAsString
Section titled “GetHardwareNameAsString”const inline
inline FString GetHardwareNameAsString() constDefined in OperatingSystemBaseHardware.h:121 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.
References
Section titled “References”GetHardwareTag
Section titled “GetHardwareTag”const inline
inline FGameplayTag GetHardwareTag() constDefined in OperatingSystemBaseHardware.h:132 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.
References
Section titled “References”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. |
TSoftObjectPtr< UObject > | Icon | |
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”GetHardwareNameGetHardwareNameAsStringOnValidateOnValidateOnValidateOnValidateOnValidateOnValidateUOperatingSystemBaseHardwareValidate
MadeBy
Section titled “MadeBy”FText MadeByDefined in OperatingSystemBaseHardware.h:31 Which company made this?
Referenced by
Section titled “Referenced by”ModelNumber
Section titled “ModelNumber”FText ModelNumberDefined in OperatingSystemBaseHardware.h:35 A model number.
Referenced by
Section titled “Referenced by”TSoftObjectPtr< UObject > IconDefined in OperatingSystemBaseHardware.h:38
Referenced by
Section titled “Referenced by”HardwareTag
Section titled “HardwareTag”FGameplayTag HardwareTagDefined in OperatingSystemBaseHardware.h:42 A tag that identifies this hardware
Referenced by
Section titled “Referenced by”GetHardwareTagOnValidateOnValidateOnValidateOnValidateOnValidateOnValidateUOperatingSystemBaseHardwareUOperatingSystemCPUUOperatingSystemGPUUOperatingSystemMBBUOperatingSystemNetworkCardUOperatingSystemPSUUOperatingSystemRAMValidate
bHasBlueprintValidateFunction
Section titled “bHasBlueprintValidateFunction”bool bHasBlueprintValidateFunctionDefined in OperatingSystemBaseHardware.h:44
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. |
Validate
Section titled “Validate”const
bool Validate(FGenericError & OutError) constDefined in OperatingSystemBaseHardware.h:62 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_OnValidate or OnValidate method to perform additional validation.
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:70 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:81 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”References
Section titled “References”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:86