Ark Server API (ASA) - Wiki
|
#include <IPlatformFileCachedWrapper.h>
Static Public Member Functions | |
static const TCHAR * | GetTypeName () |
Static Public Member Functions inherited from IPlatformFile | |
static IPlatformFile & | GetPlatformPhysical () |
static const TCHAR * | GetPhysicalTypeName () |
Private Attributes | |
IPlatformFile * | LowerLevel |
Additional Inherited Members | |
Public Types inherited from IPlatformFile | |
typedef TFunctionRef< bool(const TCHAR *, bool) | FDirectoryVisitorFunc) |
typedef TFunctionRef< bool(const TCHAR *, const FFileStatData &) | FDirectoryStatVisitorFunc) |
Definition at line 255 of file IPlatformFileCachedWrapper.h.
|
inline |
Definition at line 264 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Converts passed in filename to use an absolute path (for reading).
Filename | filename to convert to use an absolute path, safe to pass in already using absolute path |
Reimplemented from IPlatformFile.
Definition at line 434 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Converts passed in filename to use an absolute path (for writing)
Filename | filename to convert to use an absolute path, safe to pass in already using absolute path |
Reimplemented from IPlatformFile.
Definition at line 438 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Copy a file or a hierarchy of files (directory).
DestinationDirectory | Target path (either absolute or relative) to copy to - always a directory! (e.g. "/home/dest/"). |
Source | Source file (or directory) to copy (e.g. "/home/source/stuff"). |
bOverwriteAllExisting | Whether to overwrite everything that exists at target |
Reimplemented from IPlatformFile.
Definition at line 430 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Copy a file. This will fail if the destination file already exists.
To | File to copy to. |
From | File to copy from. |
ReadFlags | Source file read options. |
WriteFlags | Destination file write options. |
Reimplemented from IPlatformFile.
Definition at line 422 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Create a directory and return true if the directory was created or already existed.
Implements IPlatformFile.
Definition at line 382 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Create a directory, including any parent directories and return true if the directory was created or already existed.
Reimplemented from IPlatformFile.
Definition at line 426 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Delete a directory and return true if the directory was deleted or otherwise does not exist.
Implements IPlatformFile.
Definition at line 386 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Delete all files and subdirectories in a directory, then delete the directory itself
Directory | The directory to delete. |
Reimplemented from IPlatformFile.
Definition at line 418 of file IPlatformFileCachedWrapper.h.
Delete a file and return true if the file exists. Will not delete read only files.
Implements IPlatformFile.
Definition at line 328 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Return true if the directory exists.
Implements IPlatformFile.
Definition at line 378 of file IPlatformFileCachedWrapper.h.
Return true if the file exists.
Implements IPlatformFile.
Definition at line 320 of file IPlatformFileCachedWrapper.h.
Return the size of the file, or -1 if it doesn't exist.
Implements IPlatformFile.
Definition at line 324 of file IPlatformFileCachedWrapper.h.
|
inlinevirtual |
Finds all the files within the given directory, with optional file extension filter
Directory | The directory to iterate the contents of |
FileExtension | If FileExtension is NULL, or an empty string "" then all files are found. Otherwise FileExtension can be of the form .EXT or just EXT and only files with that extension will be returned. |
Reimplemented from IPlatformFile.
Definition at line 410 of file IPlatformFileCachedWrapper.h.
|
inlinevirtual |
Finds all the files within the directory tree, with optional file extension filter
Directory | The starting directory to iterate the contents. This function explores subdirectories |
FileExtension | If FileExtension is NULL, or an empty string "" then all files are found. Otherwise FileExtension can be of the form .EXT or just EXT and only files with that extension will be returned. |
Reimplemented from IPlatformFile.
Definition at line 414 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Return the last access time of a file. Returns FDateTime::MinValue() on failure
Implements IPlatformFile.
Definition at line 352 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
For case insensitive filesystems, returns the full path of the file with the same case as in the filesystem
Implements IPlatformFile.
Definition at line 356 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Gets the platform file wrapped by this file.
Implements IPlatformFile.
Definition at line 308 of file IPlatformFileCachedWrapper.h.
Gets this platform file type name.
Implements IPlatformFile.
Definition at line 316 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Return the stat data for the given file or directory. Check the FFileStatData::bIsValid member before using the returned data
Implements IPlatformFile.
Definition at line 390 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Return the modification time of a file. Returns FDateTime::MinValue() on failure
Implements IPlatformFile.
Definition at line 344 of file IPlatformFileCachedWrapper.h.
Definition at line 259 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Initializes platform file.
Inner | Platform file to wrap by this file. |
CmdLine | Command line to parse. |
Implements IPlatformFile.
Definition at line 275 of file IPlatformFileCachedWrapper.h.
Return true if the file is read only.
Implements IPlatformFile.
Definition at line 332 of file IPlatformFileCachedWrapper.h.
|
virtual |
Call the Visit function of the visitor once for each file or directory in a single directory. This function does not explore subdirectories.
Directory | The directory to iterate the contents of. |
Visitor | Visitor to call for each element of the directory |
Implements IPlatformFile.
|
virtual |
Call the visitor once for each file or directory in a single directory. This function does not explore subdirectories.
Directory | The directory to iterate the contents of. |
Visitor | Visitor to call for each element of the directory (see FDirectoryVisitor::Visit for the signature) |
Reimplemented from IPlatformFile.
|
inlineoverridevirtual |
Call the Visit function of the visitor once for each file or directory in a single directory. This function does not explore subdirectories.
Directory | The directory to iterate the contents of. |
Visitor | Visitor to call for each element of the directory |
Implements IPlatformFile.
Definition at line 394 of file IPlatformFileCachedWrapper.h.
|
virtual |
Call the Visit function of the visitor once for each file or directory in a directory tree. This function explores subdirectories.
Directory | The directory to iterate the contents of, recursively. |
Visitor | Visitor to call for each element of the directory and each element of all subdirectories. |
Reimplemented from IPlatformFile.
|
virtual |
Call the Visit function of the visitor once for each file or directory in a directory tree. This function explores subdirectories.
Directory | The directory to iterate the contents of, recursively. |
Visitor | Visitor to call for each element of the directory and each element of all subdirectories (see FDirectoryVisitor::Visit for the signature). |
Reimplemented from IPlatformFile.
|
inlineoverridevirtual |
Call the Visit function of the visitor once for each file or directory in a directory tree. This function explores subdirectories.
Directory | The directory to iterate the contents of, recursively. |
Visitor | Visitor to call for each element of the directory and each element of all subdirectories. |
Reimplemented from IPlatformFile.
Definition at line 398 of file IPlatformFileCachedWrapper.h.
|
virtual |
Call the Visit function of the visitor once for each file or directory in a single directory. This function does not explore subdirectories.
Directory | The directory to iterate the contents of. |
Visitor | Visitor to call for each element of the directory |
Implements IPlatformFile.
|
virtual |
Call the visitor once for each file or directory in a single directory. This function does not explore subdirectories.
Directory | The directory to iterate the contents of. |
Visitor | Visitor to call for each element of the directory (see FDirectoryStatVisitor::Visit for the signature) |
Reimplemented from IPlatformFile.
|
inlineoverridevirtual |
Call the Visit function of the visitor once for each file or directory in a single directory. This function does not explore subdirectories.
Directory | The directory to iterate the contents of. |
Visitor | Visitor to call for each element of the directory |
Implements IPlatformFile.
Definition at line 402 of file IPlatformFileCachedWrapper.h.
|
virtual |
Call the Visit function of the visitor once for each file or directory in a directory tree. This function explores subdirectories.
Directory | The directory to iterate the contents of, recursively. |
Visitor | Visitor to call for each element of the directory and each element of all subdirectories. |
Reimplemented from IPlatformFile.
|
virtual |
Call the Visit function of the visitor once for each file or directory in a directory tree. This function explores subdirectories.
Directory | The directory to iterate the contents of, recursively. |
Visitor | Visitor to call for each element of the directory and each element of all subdirectories (see FDirectoryStatVisitor::Visit for the signature). |
Reimplemented from IPlatformFile.
|
inlineoverridevirtual |
Call the Visit function of the visitor once for each file or directory in a directory tree. This function explores subdirectories.
Directory | The directory to iterate the contents of, recursively. |
Visitor | Visitor to call for each element of the directory and each element of all subdirectories. |
Reimplemented from IPlatformFile.
Definition at line 406 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Attempt to move a file. Return true if successful. Will not overwrite existing files.
Implements IPlatformFile.
Definition at line 336 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Open a file for async reading. This call does not hit the disk or block.
Filename | file to be opened |
Reimplemented from IPlatformFile.
Definition at line 446 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Open a file for async reading. This call does hit the disk; it is synchronous open.
Filename | file to be mapped. This doesn't actually map anything, just opens the file. |
Reimplemented from IPlatformFile.
Definition at line 450 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Attempt to open a file for reading.
Filename | file to be opened |
bAllowWrite | (applies to certain platforms only) whether this file is allowed to be written to by other processes. This flag is needed to open files that are currently being written to as well. |
Implements IPlatformFile.
Definition at line 360 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Attempt to open a file for writing. If successful will return a non-nullptr pointer. Close the file by delete'ing the handle.
Implements IPlatformFile.
Definition at line 369 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Sends a message to the file server, and will block until it's complete. Will return immediately if the file manager doesn't support talking to a server.
Message | The string message to send to the server |
Reimplemented from IPlatformFile.
Definition at line 442 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Controls if the pak precacher should process precache requests. Requests below this threshold will not get precached. Without this throttle, quite a lot of memory can be consumed if the disk races ahead of the CPU.
MinPriority | the minimum priority at which requests will get precached |
Reimplemented from IPlatformFile.
Definition at line 454 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Sets the platform file wrapped by this file.
Implements IPlatformFile.
Definition at line 312 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Attempt to change the read only status of a file. Return true if successful.
Implements IPlatformFile.
Definition at line 340 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Sets the modification time of a file
Implements IPlatformFile.
Definition at line 348 of file IPlatformFileCachedWrapper.h.
|
inlineoverridevirtual |
Checks if this platform file should be used even though it was not asked to be. i.e. pak files exist on disk so we should use a pak file
Reimplemented from IPlatformFile.
Definition at line 282 of file IPlatformFileCachedWrapper.h.
|
private |
Definition at line 257 of file IPlatformFileCachedWrapper.h.