UOperatingSystemNonUnix
#include <OperatingSystemSimulator/Public/Core/OperatingSystemNonUnix.h>class UOperatingSystemNonUnixDefined in OperatingSystemNonUnix.h:17
Inherits:
UOperatingSystem
Inheritance diagram
Section titled “Inheritance diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemNonUnix["UOperatingSystemNonUnix"]
class UOperatingSystem["UOperatingSystem"]
UOperatingSystem <|-- UOperatingSystemNonUnix
Collaboration diagram
Section titled “Collaboration diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemNonUnix["UOperatingSystemNonUnix"]
class UOperatingSystem["UOperatingSystem"]
UOperatingSystemNonUnix *-- UOperatingSystem
Class detail
Section titled “Class detail”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemNonUnix {
+UOperatingSystemNonUnix()
+CreateDirectoryInPath(const FString &TargetPath, const FString &D UOperatingSystemDirectory() *
+FinalizePreInstallation(FGenericError &OutError) override void()
+PrepareOperatingSystemInstallImpl(FGenericError &OutError) override void()
+StartOperatingSystemImpl(FGenericError &OutError) override bool()
+PostLoadOperatingSystemImpl(FGenericError &OutError) override void()
+OnPartitionLoaded(UOperatingSystemPartition &LoadedPartition, void()
+FindPartitionFromLetter(const FName &TargetDiskLetter) const overri UOperatingSystemPartition() *
+FindDiskLetterAtIndex(const int32 &AtIndex) const FName()
+DiskLetters : TArray()< FName() >
}
This class represents a non-unix operating system. It inherits from UOperatingSystem and provides additional functionality specific to non-unix systems.
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
UOperatingSystemNonUnix | ||
UOperatingSystemDirectory * | CreateDirectoryInPath virtual override | Creates a directory in the specified path. |
UOperatingSystemNonUnix
Section titled “UOperatingSystemNonUnix”UOperatingSystemNonUnix()Defined in OperatingSystemNonUnix.h:26
Section titled “Defined in OperatingSystemNonUnix.h:26”CreateDirectoryInPath
Section titled “CreateDirectoryInPath”virtual override
virtual UOperatingSystemDirectory * CreateDirectoryInPath(constFString & TargetPath, constFString & DirectoryName, TSoftClassPtr< UOperatingSystemDirectory > DirectoryClass, UOperatingSystemPartition * TargetPartition, constbool bIsFromSaveGame, FGenericError & OutError) overrideDefined in OperatingSystemNonUnix.h:39 Creates a directory in the specified path.
Parameters
Section titled “Parameters”-
TargetPathThe target path where the directory will be created. -
DirectoryNameThe name of the directory to create. -
DirectoryClassThe class of the directory to be created. -
TargetPartitionThe target partition where the directory will be created. -
bIsFromSaveGameIndicates if the directory is created from a save game. -
OutErrorAn output parameter to store any errors that occur during the creation of the directory.
Returns
Section titled “Returns”A pointer to the created directory, or nullptr if the directory creation fails.
References
Section titled “References”Reimplements
Section titled “Reimplements”Protected Methods
Section titled “Protected Methods”| Return | Name | Description |
|---|---|---|
void | FinalizePreInstallation virtual override | Finalizes the pre-installation process of the operating system for non-unix systems. |
void | PrepareOperatingSystemInstallImpl virtual override | Finalizes the pre-installation process of the operating system for non-unix systems. |
bool | StartOperatingSystemImpl virtual override | Starts the operating system for non-unix systems. This method sets the disk letter for each disk partition. |
void | PostLoadOperatingSystemImpl virtual override | Performs post-loading operations for the operating system in non-Unix systems. |
void | OnPartitionLoaded virtual override | This method is called when a partition is loaded. This method sets the disk letter for the loaded partition, using the disk letter from the SaveLoadData if it is not empty, or the first disk letter found if it is empty. |
UOperatingSystemPartition * | FindPartitionFromLetter virtual const override final | Finds a partition on the non-Unix operating system that matches the given disk letter. This function searches for a partition in the list of disk partitions that has the specified disk letter. |
FName | FindDiskLetterAtIndex const | FindDiskLetterAtIndex method returns the disk letter at the specified index. |
FinalizePreInstallation
Section titled “FinalizePreInstallation”virtual override
virtual void FinalizePreInstallation(FGenericError & OutError) overrideDefined in OperatingSystemNonUnix.h:58 Finalizes the pre-installation process of the operating system for non-unix systems.
This method performs the following steps:
-
Retrieves the hard disk for the operating system.
-
Allocates a new partition on the hard disk.
-
Begins the installation process on the new partition.
-
Clears the installation timer.
-
Finishes the installation process.
Parameters
Section titled “Parameters”OutError[in,out] The output parameter to store any errors that occur during the finalization process.
References
Section titled “References”AllocatePartitionBeginInstallationBytesFinishInstallationGetSettingsParentDeviceTimerHandle_OperatingSystemInstallation
Reimplements
Section titled “Reimplements”PrepareOperatingSystemInstallImpl
Section titled “PrepareOperatingSystemInstallImpl”virtual override
virtual void PrepareOperatingSystemInstallImpl(FGenericError & OutError) overrideDefined in OperatingSystemNonUnix.h:68 Finalizes the pre-installation process of the operating system for non-unix systems.
This method retrieves the hard disk for the operating system, allocates a new partition on the hard disk, begins the installation process on the new partition, clears the installation timer, and finishes the installation process.
Parameters
Section titled “Parameters”OutError[out] The output parameter to store any errors that occur during the finalization process.
References
Section titled “References”AddNotificationInfoNOTIFICATION_OSOperatingSystemWidget
Reimplements
Section titled “Reimplements”StartOperatingSystemImpl
Section titled “StartOperatingSystemImpl”virtual override
virtual bool StartOperatingSystemImpl(FGenericError & OutError) overrideDefined in OperatingSystemNonUnix.h:77 Starts the operating system for non-unix systems. This method sets the disk letter for each disk partition.
Parameters
Section titled “Parameters”OutErrorThe output parameter to store any errors that occur during the startup process.
Returns
Section titled “Returns”Returns true if the operating system starts successfully, false otherwise.
References
Section titled “References”Reimplements
Section titled “Reimplements”PostLoadOperatingSystemImpl
Section titled “PostLoadOperatingSystemImpl”virtual override
virtual void PostLoadOperatingSystemImpl(FGenericError & OutError) overrideDefined in OperatingSystemNonUnix.h:86 Performs post-loading operations for the operating system in non-Unix systems.
This method is called after the operating system is loaded in non-Unix systems. It performs the necessary post-loading tasks based on the current state of the system.
Parameters
Section titled “Parameters”OutError[out] An output parameter to store any errors that occur during the post-loading process.
References
Section titled “References”FullBootGetSettingsOperatingSystemWidgetParentDevice
Reimplements
Section titled “Reimplements”OnPartitionLoaded
Section titled “OnPartitionLoaded”virtual override
virtual void OnPartitionLoaded(UOperatingSystemPartition & LoadedPartition, constFOperatingSystemPartitionSaveLoad & SaveLoadData) overrideDefined in OperatingSystemNonUnix.h:95 This method is called when a partition is loaded. This method sets the disk letter for the loaded partition, using the disk letter from the SaveLoadData if it is not empty, or the first disk letter found if it is empty.
Parameters
Section titled “Parameters”-
LoadedPartitionThe partition that is loaded. -
SaveLoadDataThe data used to load the partition.
References
Section titled “References”Reimplements
Section titled “Reimplements”FindPartitionFromLetter
Section titled “FindPartitionFromLetter”virtual const override final
virtual UOperatingSystemPartition * FindPartitionFromLetter(constFName & TargetDiskLetter) const override finalDefined in OperatingSystemNonUnix.h:105 Finds a partition on the non-Unix operating system that matches the given disk letter. This function searches for a partition in the list of disk partitions that has the specified disk letter.
Parameters
Section titled “Parameters”TargetDiskLetterThe disk letter to search for.
Returns
Section titled “Returns”A pointer to the UOperatingSystemPartition object representing the partition if found, nullptr otherwise.
Referenced by
Section titled “Referenced by”References
Section titled “References”Reimplements
Section titled “Reimplements”FindDiskLetterAtIndex
Section titled “FindDiskLetterAtIndex”const
FName FindDiskLetterAtIndex(constint32 & AtIndex) constDefined in OperatingSystemNonUnix.h:114 FindDiskLetterAtIndex method returns the disk letter at the specified index.
Parameters
Section titled “Parameters”AtIndex- The index of the disk letter to find.
Returns
Section titled “Returns”The disk letter at the specified index, or NAME_None if the index is invalid.
Referenced by
Section titled “Referenced by”References
Section titled “References”Private Attributes
Section titled “Private Attributes”| Return | Name | Description |
|---|---|---|
TArray< FName > | DiskLetters |
DiskLetters
Section titled “DiskLetters”TArray< FName > DiskLettersDefined in OperatingSystemNonUnix.h:22