Navigation
API > API/Runtime > API/Runtime/BackgroundHTTPFileHash
References
| Module | BackgroundHTTPFileHash |
| Header | /Engine/Source/Runtime/Online/BackgroundHTTPFileHash/Public/BackgroundHttpFileHashHelper.h |
| Include | #include "BackgroundHttpFileHashHelper.h" |
Syntax
class FBackgroundHttpFileHashHelper
Remarks
Helper that handles generating unique hashed file paths to use store to store BackgroundHTTP work once completed. Can be saved and loaded to/from disk to handle persistence across session when background work is compelted without any usefull program state. NOTE: This is in it's own separate module as some platforms (IOS, etc.) need to include this functionality in ApplicationCore and thus fully adding a dependency to those modules on BackgroundHTTP would not work
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Deletes any URLMapping that doesn't have a corresponding Temp file actually on disk. | ||
| const FString * | FindMappedURLForTempFilename
(
const FString& TempFilename |
Looks for a URL mapped to the supplied TempFilename. Nullptr returned if one isn't found. | |
| const FString & | FindOrAddTempFilenameMappingForURL
(
const FString& URL |
Looks for a temp filename mapping for the given URL. If one isn't found a new one is generated and returned. | |
| const FString * | FindTempFilenameMappingForURL
(
const FString& URL |
Looks for a temp filename mapping for the given URL. If one isn't found returns nullptr and does NOT generate one. | |
| FString | GetFullPathOfTempFilename
(
const FString& TempFilename |
Helper function that returns a full path representation of hte given TempFilename. | |
| const FString & | Helper function that returns the file extension used by our BackgroundHTTP temp files. | ||
| const FString & | Get our base directory used to store Temp files. | ||
| bool | InitFromString
(
const FString& StringIn |
Sets the values of this FBackgroundHttpFileHashHelper from the string representation Returns if the parse was successful or not | |
| void | LoadData () |
Handles loading URL Mapping data from disk. No operation if data has previously been loaded. | |
| void | RemoveURLMapping
(
const FString& URL |
Removes URL mapping. | |
| void | SaveData () |
Handles saving URL Mapping data to disk. No operation if data isn't dirty. | |
| FString | ToString () |
Creates an FString representation of this FBackgroundHttpFileHashHelper's URL mappings. Used for serializing to/from disk. |