Operating System Simulator Plugin
3.5.1
Unreal Engine plugin that simulates an Operating System Environment
|
#include "OperatingSystemExplorerInterface.h"
Public Member Functions | |
virtual TArray< UOperatingSystemDirectory * > | GetChildDirectories () const =0 |
virtual void | GetParentExplorerInterface (TScriptInterface< IOperatingSystemExplorerInterface > &OutInterface) const =0 |
virtual bool | IsPartition () const =0 |
virtual FText | GetInterfaceDisplayName () const =0 |
virtual bool | FindDirectoryByTag (const FGameplayTag DirectoryTag, const bool bRecursive, UOperatingSystemDirectory *&OutDirectory) const =0 |
virtual TScriptInterface< IOperatingSystemExplorerInterface > | GetChildDirectory (const FString &TargetChildDirectoryName, const bool bRecursive=true) const =0 |
virtual TArray< UOperatingSystemFile * > | GetAllFiles (const FString &WithExtension="*") const =0 |
virtual bool | CanCreateNewFile () const =0 |
virtual bool | HasEnoughSpace (const FOperatingSystemSizeInMB &TestSpace) const =0 |
Checks whether the current directory has enough space to accommodate the specified test space. | |
virtual UOperatingSystem * | GetOperatingSystem () const =0 |
virtual TOptional< FString > | GetFullPath () const =0 |
Retrieves the full path of the current directory. | |
virtual TScriptInterface< IOperatingSystemExplorerInterface > | GetInterfaceFromPath (const FString &NewPath) const =0 |
Interface for an operating system explorer.
This interface defines the functions that should be implemented by an operating system explorer class.
|
pure virtual |
Checks whether the current directory can create new files.
Implemented in UOperatingSystemDirectory, and UOperatingSystemPartition.
|
pure virtual |
Finds a directory by tag.
DirectoryTag | The gameplay tag used to identify the directory. |
bRecursive | Whether to search recursively in subdirectories. |
OutDirectory | The output parameter that will hold the found directory. |
Implemented in UOperatingSystemDirectory, and UOperatingSystemPartition.
|
pure virtual |
Returns an array of UOperatingSystemFile objects containing all files in the operating system that match the specified extension.
WithExtension | The extension filter to apply when retrieving files. Defaults to "*" which retrieves all files. |
Implemented in UOperatingSystemDirectory, and UOperatingSystemPartition.
|
pure virtual |
This method retrieves an array of child directories of the current directory.
Implemented in UOperatingSystemDirectory, and UOperatingSystemPartition.
|
pure virtual |
Retrieves the child directory with the specified name.
TargetChildDirectoryName | The name of the child directory to retrieve. |
bRecursive | Indicates whether to search for the child directory recursively. Default is true. |
Implemented in UOperatingSystemDirectory, UOperatingSystemPartition, UOperatingSystemDirectory, and UOperatingSystemPartition.
|
pure virtual |
Retrieves the full path of the current directory.
This method retrieves the full path of the current directory.
Implemented in UOperatingSystemDirectory, and UOperatingSystemPartition.
|
pure virtual |
Retrieves the display name of the interface.
Implemented in UOperatingSystemDirectory, and UOperatingSystemPartition.
|
pure virtual |
Retrieves an interface from a specified path.
This method retrieves an interface from a specified path. The path is used to locate the desired interface in the operating system.
NewPath | The path to the interface. |
Implemented in UOperatingSystemDirectory, and UOperatingSystemPartition.
|
pure virtual |
Retrieves the operating system associated with the operating system explorer.
Implemented in UOperatingSystemDirectory, and UOperatingSystemPartition.
|
pure virtual |
Retrieves the parent explorer interface. For partition classes, OutInterface will always be null since there is nothing above partition. For directories however OutInterface will either be a parent directory or the parent partition.
OutInterface | The output parameter to store the parent explorer interface. |
Implemented in UOperatingSystemDirectory, and UOperatingSystemPartition.
|
pure virtual |
Checks whether the current directory has enough space to accommodate the specified test space.
This method checks whether the current directory has enough space to accommodate the specified test space.
TestSpace | The test space to check, specified as a FOperatingSystemSizeInMB object. |
Implemented in UOperatingSystemDirectory, and UOperatingSystemPartition.
|
pure virtual |
Checks whether the object represents a partition or not.
Implemented in UOperatingSystemDirectory, and UOperatingSystemPartition.