#include "OperatingSystemRAM.h"
UOperatingSystemRAM is a class that represents the RAM (Random Access Memory) of an operating system. It is derived from UOperatingSystemBaseHardware. This class provides functionality to create RAM, validate RAM, and store the size of the RAM.
◆ UOperatingSystemRAM()
UOperatingSystemRAM::UOperatingSystemRAM |
( |
| ) |
|
◆ CreateRAM()
Creates a RAM object for the operating system. This method creates a RAM object for the specified OwningMotherboard and returns it.
- Parameters
-
OwningMotherboard | - Pointer to UOperatingSystemMBB object representing the motherboard that owns the RAM. |
OutError | - Reference to FGenericError object to store any error that occurs during the creation process. |
- Returns
- UOperatingSystemRAM* - Pointer to the created RAM object if successful, nullptr otherwise.
◆ OnValidate()
bool UOperatingSystemRAM::OnValidate |
( |
FGenericError & | OutError | ) |
const |
|
overrideprotectedvirtual |
Validates the RAM (Random Access Memory) of the operating system.
This method validates the RAM by checking if the HardwareTag matches the RamTag. If they don't match, an error message is set in the OutError parameter and false is returned. It also checks if the size of the RAM is supported by the ParentMotherboard. If the size is not supported, an error message is set in the OutError parameter and false is returned If both checks pass, true is returned.
- Parameters
-
OutError | - Reference to a FGenericError object to store any error that occurs during the validation process. |
- Returns
- bool - True if the RAM is valid, false otherwise.
Reimplemented from UOperatingSystemBaseHardware.
The documentation for this class was generated from the following files: