Navigation
API > API/Runtime > API/Runtime/Core
NOTE: is not used on the whole class because then FCategoryInfo is exported which appears to force the generation of copy constructors for FPersistentStorageCategory which causes a compile error because std::atomic can't be copied.
| Name | FPersistentStorageManager |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/HAL/IPlatformFileManagedStorageWrapper.h |
| Include Path | #include "HAL/IPlatformFileManagedStorageWrapper.h" |
Syntax
class FPersistentStorageManager
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPersistentStorageManager() |
HAL/IPlatformFileManagedStorageWrapper.h |
Structs
| Name | Remarks |
|---|---|
| FCategoryInfo | Wrapper for Category Array to prevent resizing after init. |
| FRootDirInfo | Top level of all managed storage Wrapper to prevent changing or resizing after init |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bInitialized | bool | HAL/IPlatformFileManagedStorageWrapper.h | ||
| Categories | FCategoryInfo | HAL/IPlatformFileManagedStorageWrapper.h | ||
| RootDirectories | FRootDirInfo | HAL/IPlatformFileManagedStorageWrapper.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
EPersistentStorageManagerFileSizeFlags AddOrUpdateFile
(
const FPersistentManagedFile& File, |
HAL/IPlatformFileManagedStorageWrapper.h | ||
TMap< FString, FPersistentStorageCategory::CategoryStat > GenerateCategoryStats() |
HAL/IPlatformFileManagedStorageWrapper.h | ||
TOptional< FPersistentStorageCategory::CategoryStat > GetCategoryStat
(
const FString& InCategory |
HAL/IPlatformFileManagedStorageWrapper.h | ||
bool GetPersistentStorageSize
(
int64& UsedSpace, |
Returns any additional required free space and optional free space. | HAL/IPlatformFileManagedStorageWrapper.h | |
bool GetPersistentStorageUsage
(
FString Path, |
HAL/IPlatformFileManagedStorageWrapper.h | ||
bool GetPersistentStorageUsageByCategory
(
const FString& InCategory, |
HAL/IPlatformFileManagedStorageWrapper.h | ||
TArrayView< const FString > GetRootDirectories() |
HAL/IPlatformFileManagedStorageWrapper.h | ||
int64 GetTotalUsedSize() |
HAL/IPlatformFileManagedStorageWrapper.h | ||
void Initialize() |
HAL/IPlatformFileManagedStorageWrapper.h | ||
bool IsCategoryForFileFull
(
const FPersistentManagedFile& File |
HAL/IPlatformFileManagedStorageWrapper.h | ||
bool IsInitialized() |
HAL/IPlatformFileManagedStorageWrapper.h | ||
bool RemoveFileFromManager
(
FPersistentManagedFile& File |
HAL/IPlatformFileManagedStorageWrapper.h | ||
FPersistentManagedFile TryManageFile
(
const FString& Filename |
HAL/IPlatformFileManagedStorageWrapper.h | ||
FPersistentManagedFile TryManageFile
(
FString&& Filename |
HAL/IPlatformFileManagedStorageWrapper.h | ||
bool TryManageFile
(
FPersistentManagedFile& InOutFile |
HAL/IPlatformFileManagedStorageWrapper.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FPersistentStorageManager & Get() |
Singleton access | HAL/IPlatformFileManagedStorageWrapper.h | |
static FCategoryInfo InitCategories() |
HAL/IPlatformFileManagedStorageWrapper.h | ||
static bool IsReady() |
HAL/IPlatformFileManagedStorageWrapper.h |