Skip to content

IOperatingSystemExplorerInterface

#include <OperatingSystemSimulator/Public/Interfaces/OperatingSystemExplorerInterface.h>
class IOperatingSystemExplorerInterface

Defined in OperatingSystemExplorerInterface.h:27

Subclassed by: UOperatingSystemDirectory, UOperatingSystemPartition

---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class IOperatingSystemExplorerInterface["IOperatingSystemExplorerInterface"]
  class UOperatingSystemDirectory["UOperatingSystemDirectory"]
  IOperatingSystemExplorerInterface <|-- UOperatingSystemDirectory
  class UOperatingSystemPartition["UOperatingSystemPartition"]
  IOperatingSystemExplorerInterface <|-- UOperatingSystemPartition
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class IOperatingSystemExplorerInterface {
    +GetChildDirectories() const =0 TArray< UOperatingSystemDirectory() * >
    +GetParentExplorerInterface(TScriptInterface< IOperatingSystemExplorerI
    +IsPartition() const =0 bool
    +GetInterfaceDisplayName() const =0 FText
    +FindDirectoryByTag(const FGameplayTag DirectoryTag, const bool bool
    +GetChildDirectory(const FString &TargetChildDirectoryName, co TScriptInterface< IOperatingSystemExplor
    +GetAllFiles(const FString &WithExtension="*") const =0 TArray< UOperatingSystemFile() * >
    +CanCreateNewFile() const =0 bool
    +HasEnoughSpace(const FOperatingSystemSizeInMB &TestSpace)  bool
    +GetOperatingSystem() const =0 UOperatingSystem() *
    +GetFullPath() const =0 TOptional< FString >
    +GetInterfaceFromPath(const FString &NewPath) const =0 TScriptInterface< IOperatingSystemExplor
  }

Interface for an operating system explorer.

This interface defines the functions that should be implemented by an operating system explorer class.

ReturnNameDescription
TArray< UOperatingSystemDirectory * >GetChildDirectories virtual constThis method retrieves an array of child directories of the current directory.
voidGetParentExplorerInterface virtual constRetrieves 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.
boolIsPartition virtual constChecks whether the object represents a partition or not.
FTextGetInterfaceDisplayName virtual constRetrieves the display name of the interface.
boolFindDirectoryByTag virtual constFinds a directory by tag.
TScriptInterface< IOperatingSystemExplorerInterface >GetChildDirectory virtual constRetrieves the child directory with the specified name.
TArray< UOperatingSystemFile * >GetAllFiles virtual constReturns an array of UOperatingSystemFile objects containing all files in the operating system that match the specified extension.
boolCanCreateNewFile virtual constChecks whether the current directory can create new files.
boolHasEnoughSpace virtual constChecks whether the current directory has enough space to accommodate the specified test space.
UOperatingSystem *GetOperatingSystem virtual constRetrieves the operating system associated with the operating system explorer.
TOptional< FString >GetFullPath virtual constRetrieves the full path of the current directory.
TScriptInterface< IOperatingSystemExplorerInterface >GetInterfaceFromPath virtual constRetrieves an interface from a specified path.

virtual const

virtual TArray< UOperatingSystemDirectory * > GetChildDirectories() const

Defined in OperatingSystemExplorerInterface.h:38 This method retrieves an array of child directories of the current directory.


virtual const

virtual void GetParentExplorerInterface(TScriptInterface< IOperatingSystemExplorerInterface > & OutInterface) const

Defined in OperatingSystemExplorerInterface.h:46 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.

virtual const

virtual bool IsPartition() const

Defined in OperatingSystemExplorerInterface.h:54 Checks whether the object represents a partition or not.

true if the object represents a partition, false otherwise.


virtual const

virtual FText GetInterfaceDisplayName() const

Defined in OperatingSystemExplorerInterface.h:62 Retrieves the display name of the interface.

The display name of the interface as FText.


virtual const

virtual bool FindDirectoryByTag(const FGameplayTag DirectoryTag, const bool bRecursive, UOperatingSystemDirectory *& OutDirectory) const

Defined in OperatingSystemExplorerInterface.h:73 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.

True if a directory with the specified tag was found, false otherwise.


virtual const

virtual TScriptInterface< IOperatingSystemExplorerInterface > GetChildDirectory(const FString & TargetChildDirectoryName, const bool bRecursive = true) const

Defined in OperatingSystemExplorerInterface.h:84 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.

The child directory with the specified name, if found. Otherwise, returns nullptr.


virtual const

virtual TArray< UOperatingSystemFile * > GetAllFiles(const FString & WithExtension = "*") const

Defined in OperatingSystemExplorerInterface.h:93 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.

An array of UOperatingSystemFile objects representing the files that match the specified extension.


virtual const

virtual bool CanCreateNewFile() const

Defined in OperatingSystemExplorerInterface.h:100 Checks whether the current directory can create new files.

True if the current directory can create new files, false otherwise.


virtual const

virtual bool HasEnoughSpace(const FOperatingSystemSizeInMB & TestSpace) const

Defined in OperatingSystemExplorerInterface.h:110 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.

True if the current directory has enough space, false otherwise.


virtual const

virtual UOperatingSystem * GetOperatingSystem() const

Defined in OperatingSystemExplorerInterface.h:117 Retrieves the operating system associated with the operating system explorer.

A pointer to the operating system object. Returns nullptr if no operating system is associated.


virtual const

virtual TOptional< FString > GetFullPath() const

Defined in OperatingSystemExplorerInterface.h:126 Retrieves the full path of the current directory.

This method retrieves the full path of the current directory.

An optional FString containing the full path of the current directory, if available. Otherwise, returns an empty optional.


virtual const

virtual TScriptInterface< IOperatingSystemExplorerInterface > GetInterfaceFromPath(const FString & NewPath) const

Defined in OperatingSystemExplorerInterface.h:136 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.

The interface requested, represented as TScriptInterface<IOperatingSystemExplorerInterface>.