Base class for file managers. 更多...
#include <FileManagerGeneric.h>
继承自 IFileManager .
Public 成员函数 | |
| FString | ConvertToAbsolutePathForExternalAppForRead (const TCHAR *Filename) override |
| Converts passed in filename to use an absolute path (for reading) 更多... | |
| FString | ConvertToAbsolutePathForExternalAppForWrite (const TCHAR *Filename) override |
| Converts passed in filename to use an absolute path (for writing) 更多... | |
| FString | ConvertToRelativePath (const TCHAR *Filename) override |
| Converts passed in filename to use a relative path. 更多... | |
| FFileManagerGeneric () | |
| Default constructor. | |
| int64 | FileSize (const TCHAR *Filename) override |
| Returns the size of a file. 更多... | |
| virtual void | FindFiles (TArray< FString > &FoundFiles, const TCHAR *Directory, const TCHAR *FileExtension=nullptr) override |
| Finds all the files within the given directory, with optional file extension filter. 更多... | |
| bool | IterateDirectory (const TCHAR *Directory, IPlatformFile::FDirectoryVisitor &Visitor) override |
| Call the Visit function of the visitor once for each file or directory in a single directory. 更多... | |
| bool | IterateDirectoryRecursively (const TCHAR *Directory, IPlatformFile::FDirectoryVisitor &Visitor) override |
| Call the Visit function of the visitor once for each file or directory in a directory tree. 更多... | |
| bool | IterateDirectoryStat (const TCHAR *Directory, IPlatformFile::FDirectoryStatVisitor &Visitor) override |
| Call the Visit function of the visitor once for each file or directory in a single directory. 更多... | |
| bool | IterateDirectoryStatRecursively (const TCHAR *Directory, IPlatformFile::FDirectoryStatVisitor &Visitor) override |
| Call the Visit function of the visitor once for each file or directory in a directory tree. 更多... | |
| virtual bool | SendMessageToServer (const TCHAR *Message, IPlatformFile::IFileServerMessageHandler *Handler) override |
| Sends a message to the file server, and will block until it's complete. 更多... | |
| virtual | ~FFileManagerGeneric () |
| Virtual destructor. | |
静态 Public 成员函数 | |
| static FString | DefaultConvertToRelativePath (const TCHAR *Filename) |
| Converts passed in filename to use a relative path. 更多... | |
Base class for file managers.
This base class simplifies IFileManager implementations by providing simple, unoptimized implementations of functions whose implementations can be derived from other functions.
|
override |
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 |
|
override |
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 |
|
override |
Converts passed in filename to use a relative path.
| Filename | filename to convert to use a relative path |
|
static |
Converts passed in filename to use a relative path.
| Filename | filename to convert to use a relative path |
|
override |
Returns the size of a file.
(Thread-safe)
| Filename | Platform-independent Unreal filename. |
|
overridevirtual |
Finds all the files within the given directory, with optional file extension filter.
| Directory,the | absolute path to the directory to search. Ex: "C:\UE4\Pictures" |
| 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. |
|
override |
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 |
|
override |
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. |
|
override |
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 |
|
override |
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. |
|
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 |