Ark Server API (ASA) - Wiki
|
#include <RemoteConfigIni.h>
Public Member Functions | |
FRemoteConfig () | |
bool | IsRemoteFile (const TCHAR *Filename) |
bool | ShouldReadRemoteFile (const TCHAR *Filename) |
FRemoteConfigAsyncIOInfo * | FindConfig (const TCHAR *Filename) |
bool | IsFinished (const TCHAR *InFilename) |
bool | Read (const TCHAR *GeneratedIniFile, const TCHAR *DefaultIniFile) |
bool | Write (const TCHAR *Filename, FString &Contents) |
void | FinishRead (const TCHAR *Filename) |
Static Public Member Functions | |
static FRemoteConfig * | Get () |
static void | Flush () |
static FString | ReplaceIniCharWithSpecialChar (const FString &Str) |
static FString | ReplaceIniSpecialCharWithChar (const FString &Str) |
Private Member Functions | |
FString | GenerateRemotePath (const TCHAR *Filename) |
Private Attributes | |
TMap< FString, FRemoteConfigAsyncIOInfo > | ConfigBuffers |
float | Timeout |
bool | bIsEnabled |
bool | bHasCachedFilenames |
TArray< FString > | CachedFileNames |
Manages remote config files.
Definition at line 159 of file RemoteConfigIni.h.
FRemoteConfig::FRemoteConfig | ( | ) |
Constructor
FRemoteConfigAsyncIOInfo * FRemoteConfig::FindConfig | ( | const TCHAR * | Filename | ) |
Simple accessor function.
Waits on the async read if it hasn't finished yet... times out if the operation has taken too long.
Creates the remote path string for the specified file.
|
static |
Returns a reference to the global FRemoteConfig object.
Returns true if the specified config file has been flagged as being remote.
Queues up a new async task for reading a remote config file.
Returns true if the specified file is remote and still needs to be read.
Queues up a new async task for writing a remote config file.
|
private |
true if the list of desired remote files has been filled out.
Definition at line 214 of file RemoteConfigIni.h.
|
private |
If true, remote ops are allowed.
Definition at line 211 of file RemoteConfigIni.h.
List of desired remote files.
Definition at line 217 of file RemoteConfigIni.h.
|
private |
List of remote config file info.
Definition at line 205 of file RemoteConfigIni.h.
|
private |
Async IO operation timeout.
Definition at line 208 of file RemoteConfigIni.h.