Wrapper to redirect the low level file system to a server 更多...
#include <NetworkPlatformFile.h>
类 FNetworkPlatformFile 继承关系图:Public 成员函数 | |
| virtual FString | ConvertToAbsolutePathForExternalAppForRead (const TCHAR *Filename) override |
| Converts passed in filename to use an absolute path (for reading). 更多... | |
| virtual FString | ConvertToAbsolutePathForExternalAppForWrite (const TCHAR *Filename) override |
| Converts passed in filename to use an absolute path (for writing) 更多... | |
| virtual bool | CopyFile (const TCHAR *To, const TCHAR *From, EPlatformFileRead ReadFlags=EPlatformFileRead::None, EPlatformFileWrite WriteFlags=EPlatformFileWrite::None) override |
| Copy a file. 更多... | |
| virtual bool | CreateDirectory (const TCHAR *Directory) override |
| Create a directory and return true if the directory was created or already existed. | |
| virtual bool | CreateDirectoryTree (const TCHAR *Directory) override |
| Create a directory, including any parent directories and return true if the directory was created or already existed. | |
| virtual bool | DeleteDirectory (const TCHAR *Directory) override |
| Delete a directory and return true if the directory was deleted or otherwise does not exist. | |
| virtual bool | DeleteDirectoryRecursively (const TCHAR *Directory) override |
| Delete all files and subdirectories in a directory, then delete the directory itself 更多... | |
| virtual bool | DeleteFile (const TCHAR *Filename) override |
| Delete a file and return true if the file exists. 更多... | |
| virtual bool | DirectoryExists (const TCHAR *Directory) override |
| Return true if the directory exists. | |
| virtual bool | FileExists (const TCHAR *Filename) override |
| Return true if the file exists. | |
| virtual int64 | FileSize (const TCHAR *Filename) override |
| Return the size of the file, or -1 if it doesn't exist. | |
| FNetworkPlatformFile () | |
| Constructor | |
| virtual FDateTime | GetAccessTimeStamp (const TCHAR *Filename) override |
| Return the last access time of a file. 更多... | |
| virtual FString | GetFilenameOnDisk (const TCHAR *Filename) override |
| For case insensitive filesystems, returns the full path of the file with the same case as in the filesystem | |
| virtual IPlatformFile * | GetLowerLevel () override |
| Gets the platform file wrapped by this file. | |
| virtual const TCHAR * | GetName () const override |
| Gets this platform file type name. | |
| virtual FFileStatData | GetStatData (const TCHAR *FilenameOrDirectory) override |
| Return the stat data for the given file or directory. 更多... | |
| virtual FDateTime | GetTimeStamp (const TCHAR *Filename) override |
| Return the modification time of a file. 更多... | |
| virtual bool | Initialize (IPlatformFile *Inner, const TCHAR *CmdLine) override |
| Initializes platform file. 更多... | |
| virtual void | InitializeAfterSetActive () override |
| Performs initialization of the platform file after it has become the active (FPlatformFileManager.GetPlatformFile() will return this | |
| virtual bool | IsReadOnly (const TCHAR *Filename) override |
| Return true if the file is read only. | |
| virtual 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. 更多... | |
| virtual 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. 更多... | |
| virtual 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. 更多... | |
| virtual 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 | MoveFile (const TCHAR *To, const TCHAR *From) override |
| Attempt to move a file. 更多... | |
| virtual IFileHandle * | OpenRead (const TCHAR *Filename, bool bAllowWrite=false) override |
| Attempt to open a file for reading. 更多... | |
| virtual IFileHandle * | OpenWrite (const TCHAR *Filename, bool bAppend=false, bool bAllowRead=false) override |
| Attempt to open a file for writing. 更多... | |
| 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 void | SetLowerLevel (IPlatformFile *NewLowerLevel) override |
| Sets the platform file wrapped by this file. | |
| virtual bool | SetReadOnly (const TCHAR *Filename, bool bNewReadOnlyValue) override |
| Attempt to change the read only status of a file. 更多... | |
| virtual void | SetTimeStamp (const TCHAR *Filename, FDateTime DateTime) override |
| Sets the modification time of a file | |
| virtual bool | ShouldBeUsed (IPlatformFile *Inner, const TCHAR *CmdLine) const override |
| Checks if this platform file should be used even though it was not asked to be. 更多... | |
| virtual void | Tick () override |
| Platform file can override this to get a regular tick from the engine | |
| virtual | ~FNetworkPlatformFile () |
| Destructor | |
Public 成员函数 继承自 IPlatformFile | |
| virtual void | AddLocalDirectories (TArray< FString > &LocalDirectories) |
| Identifies any platform specific paths that are guaranteed to be local (i.e. 更多... | |
| virtual FString | ConvertToAbsolutePathForExternalAppForRead (const TCHAR *Filename) |
| Converts passed in filename to use an absolute path (for reading). 更多... | |
| virtual FString | ConvertToAbsolutePathForExternalAppForWrite (const TCHAR *Filename) |
| Converts passed in filename to use an absolute path (for writing) 更多... | |
| virtual bool | CopyDirectoryTree (const TCHAR *DestinationDirectory, const TCHAR *Source, bool bOverwriteAllExisting) |
| Copy a file or a hierarchy of files (directory). 更多... | |
| virtual bool | CopyFile (const TCHAR *To, const TCHAR *From, EPlatformFileRead ReadFlags=EPlatformFileRead::None, EPlatformFileWrite WriteFlags=EPlatformFileWrite::None) |
| Copy a file. 更多... | |
| virtual bool | CreateDirectory (const TCHAR *Directory)=0 |
| Create a directory and return true if the directory was created or already existed. | |
| virtual bool | CreateDirectoryTree (const TCHAR *Directory) |
| Create a directory, including any parent directories and return true if the directory was created or already existed. | |
| virtual bool | DeleteDirectory (const TCHAR *Directory)=0 |
| Delete a directory and return true if the directory was deleted or otherwise does not exist. | |
| virtual bool | DeleteDirectoryRecursively (const TCHAR *Directory) |
| Delete all files and subdirectories in a directory, then delete the directory itself 更多... | |
| virtual bool | DeleteFile (const TCHAR *Filename)=0 |
| Delete a file and return true if the file exists. 更多... | |
| virtual bool | DirectoryExists (const TCHAR *Directory)=0 |
| Return true if the directory exists. | |
| virtual bool | DoesCreatePublicFiles () |
| Checks to see if this file system creates publicly accessible files 更多... | |
| virtual bool | FileExists (const TCHAR *Filename)=0 |
| Return true if the file exists. | |
| virtual int64 | FileSize (const TCHAR *Filename)=0 |
| Return the size of the file, or -1 if it doesn't exist. | |
| virtual void | FindFiles (TArray< FString > &FoundFiles, const TCHAR *Directory, const TCHAR *FileExtension) |
| Finds all the files within the given directory, with optional file extension filter 更多... | |
| virtual void | FindFilesRecursively (TArray< FString > &FoundFiles, const TCHAR *Directory, const TCHAR *FileExtension) |
| Finds all the files within the directory tree, with optional file extension filter 更多... | |
| virtual FDateTime | GetAccessTimeStamp (const TCHAR *Filename)=0 |
| Return the last access time of a file. 更多... | |
| virtual FString | GetFilenameOnDisk (const TCHAR *Filename)=0 |
| For case insensitive filesystems, returns the full path of the file with the same case as in the filesystem | |
| virtual IPlatformFile * | GetLowerLevel ()=0 |
| Gets the platform file wrapped by this file. | |
| virtual const TCHAR * | GetName () const =0 |
| Gets this platform file type name. | |
| virtual FFileStatData | GetStatData (const TCHAR *FilenameOrDirectory)=0 |
| Return the stat data for the given file or directory. 更多... | |
| virtual FDateTime | GetTimeStamp (const TCHAR *Filename)=0 |
| Return the modification time of a file. 更多... | |
| virtual FDateTime | GetTimeStampLocal (const TCHAR *Filename) |
| Return the modification time of a file in the local time of the calling code (GetTimeStamp returns UTC). 更多... | |
| virtual bool | Initialize (IPlatformFile *Inner, const TCHAR *CmdLine)=0 |
| Initializes platform file. 更多... | |
| virtual void | InitializeAfterSetActive () |
| Performs initialization of the platform file after it has become the active (FPlatformFileManager.GetPlatformFile() will return this | |
| virtual void | InitializeNewAsyncIO () |
| Performs initialization of the platform file after the new async IO has been enabled | |
| virtual bool | IsReadOnly (const TCHAR *Filename)=0 |
| Return true if the file is read only. | |
| virtual bool | IsSandboxEnabled () const |
| Returns whether the sandbox is enabled or not 更多... | |
| virtual bool | IterateDirectory (const TCHAR *Directory, FDirectoryVisitor &Visitor)=0 |
| Call the Visit function of the visitor once for each file or directory in a single directory. 更多... | |
| virtual bool | IterateDirectory (const TCHAR *Directory, FDirectoryVisitorFunc Visitor) |
| Call the visitor once for each file or directory in a single directory. 更多... | |
| virtual bool | IterateDirectoryRecursively (const TCHAR *Directory, FDirectoryVisitor &Visitor) |
| Call the Visit function of the visitor once for each file or directory in a directory tree. 更多... | |
| virtual bool | IterateDirectoryRecursively (const TCHAR *Directory, FDirectoryVisitorFunc Visitor) |
| Call the Visit function of the visitor once for each file or directory in a directory tree. 更多... | |
| virtual bool | IterateDirectoryStat (const TCHAR *Directory, FDirectoryStatVisitor &Visitor)=0 |
| Call the Visit function of the visitor once for each file or directory in a single directory. 更多... | |
| virtual bool | IterateDirectoryStat (const TCHAR *Directory, FDirectoryStatVisitorFunc Visitor) |
| Call the visitor once for each file or directory in a single directory. 更多... | |
| virtual bool | IterateDirectoryStatRecursively (const TCHAR *Directory, FDirectoryStatVisitor &Visitor) |
| Call the Visit function of the visitor once for each file or directory in a directory tree. 更多... | |
| virtual bool | IterateDirectoryStatRecursively (const TCHAR *Directory, FDirectoryStatVisitorFunc Visitor) |
| Call the Visit function of the visitor once for each file or directory in a directory tree. 更多... | |
| virtual void | MakeUniquePakFilesForTheseFiles (const TArray< TArray< FString > > &InFiles) |
| Build an in memory unique pak file from a subset of files in this pak file | |
| virtual bool | MoveFile (const TCHAR *To, const TCHAR *From)=0 |
| Attempt to move a file. 更多... | |
| virtual IAsyncReadFileHandle * | OpenAsyncRead (const TCHAR *Filename) |
| Open a file for async reading. 更多... | |
| virtual IMappedFileHandle * | OpenMapped (const TCHAR *Filename) |
| Open a file for async reading. 更多... | |
| virtual IFileHandle * | OpenRead (const TCHAR *Filename, bool bAllowWrite=false)=0 |
| Attempt to open a file for reading. 更多... | |
| virtual IFileHandle * | OpenWrite (const TCHAR *Filename, bool bAppend=false, bool bAllowRead=false)=0 |
| Attempt to open a file for writing. 更多... | |
| virtual bool | SendMessageToServer (const TCHAR *Message, IFileServerMessageHandler *Handler) |
| Sends a message to the file server, and will block until it's complete. 更多... | |
| virtual void | SetAsyncMinimumPriority (EAsyncIOPriorityAndFlags MinPriority) |
| Controls if the pak precacher should process precache requests. 更多... | |
| virtual void | SetCreatePublicFiles (bool bCreatePublicFiles) |
| Sets file system to create publicly accessible files or not 更多... | |
| virtual void | SetLowerLevel (IPlatformFile *NewLowerLevel)=0 |
| Sets the platform file wrapped by this file. | |
| virtual bool | SetReadOnly (const TCHAR *Filename, bool bNewReadOnlyValue)=0 |
| Attempt to change the read only status of a file. 更多... | |
| virtual void | SetSandboxEnabled (bool bInEnabled) |
| Set whether the sandbox is enabled or not 更多... | |
| virtual void | SetTimeStamp (const TCHAR *Filename, FDateTime DateTime)=0 |
| Sets the modification time of a file | |
| virtual bool | ShouldBeUsed (IPlatformFile *Inner, const TCHAR *CmdLine) const |
| Checks if this platform file should be used even though it was not asked to be. 更多... | |
| virtual void | Tick () |
| Platform file can override this to get a regular tick from the engine | |
| virtual | ~IPlatformFile () |
| Destructor. | |
Public 成员函数 继承自 FSelfRegisteringExec | |
| FSelfRegisteringExec () | |
| Constructor, registering this instance. | |
| virtual | ~FSelfRegisteringExec () |
| Destructor, unregistering this instance. | |
Protected 成员函数 | |
| virtual void | ConvertServerFilenameToClientFilename (FString &FilenameToConvert) |
| Convert the given filename from the server to the client version of it NOTE: Potentially modifies the input FString!!!! 更多... | |
| virtual bool | InitializeInternal (IPlatformFile *Inner, const TCHAR *HostIP) |
| Initialize network platform file give the specified host IP 更多... | |
| void | MakeStandardNetworkFilename (FString &Filename) |
| Does normal path standardization, and also any extra modifications to make string comparisons against the internal directory list work properly. | |
| virtual void | PerformHeartbeat () |
| Send a heartbeat message to the file server. 更多... | |
Protected 属性 | |
| bool | bHasLoadedDDCDirectories |
| This is true after the DDC directories have been loaded from the DDC system | |
| TSet< FString > | CachedLocalFiles |
| This keeps track of what files have been "EnsureFileIsLocal'd" | |
| IPlatformFile * | InnerPlatformFile |
| The file interface to read/write local files with | |
| TArray< FString > | LocalDirectories |
| Set of directories that should use the local filesystem | |
| FString | ServerEngineDir |
| The server engine dir | |
| FString | ServerEnginePlatformExtensionsDir |
| The server engine platform extensions dir | |
| FServerTOC | ServerFiles |
| This is the "TOC" of the server | |
| FString | ServerProjectDir |
| The server game dir | |
| FString | ServerProjectPlatformExtensionsDir |
| The server project platform extensions dir | |
额外继承的成员函数 | |
Public 类型 继承自 IPlatformFile | |
| typedef TFunctionRef< bool(const TCHAR *, const FFileStatData &)> | FDirectoryStatVisitorFunc |
| File and directory visitor function that takes all the stat data | |
| typedef TFunctionRef< bool(const TCHAR *, bool)> | FDirectoryVisitorFunc |
| File and directory visitor function that takes only the name | |
静态 Public 成员函数 继承自 IPlatformFile | |
| static const TCHAR * | GetPhysicalTypeName () |
| Returns the name of the physical platform file type. | |
| static IPlatformFile & | GetPlatformPhysical () |
| Physical file system of the platform, never wrapped. | |
静态 Public 成员函数 继承自 FSelfRegisteringExec | |
| static bool | StaticExec (UWorld *Inworld, const TCHAR *Cmd, FOutputDevice &Ar) |
| Routes a command to the self-registered execs. | |
Wrapper to redirect the low level file system to a server
|
protectedvirtual |
Convert the given filename from the server to the client version of it NOTE: Potentially modifies the input FString!!!!
| FilenameToConvert | Upon input, the server version of the filename. After the call, the client version |
|
overridevirtual |
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 |
重载 IPlatformFile .
|
overridevirtual |
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 |
重载 IPlatformFile .
|
overridevirtual |
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. |
重载 IPlatformFile .
被 FCookedIterativeNetworkFile , 以及 FStreamingNetworkPlatformFile 重载.
|
overridevirtual |
Delete all files and subdirectories in a directory, then delete the directory itself
| Directory | The directory to delete. |
重载 IPlatformFile .
被 FCookedIterativeNetworkFile , 以及 FStreamingNetworkPlatformFile 重载.
|
overridevirtual |
Delete a file and return true if the file exists.
Will not delete read only files.
实现了 IPlatformFile.
被 FCookedIterativeNetworkFile , 以及 FStreamingNetworkPlatformFile 重载.
|
inlineoverridevirtual |
|
overridevirtual |
Return the stat data for the given file or directory.
Check the FFileStatData::bIsValid member before using the returned data
实现了 IPlatformFile.
|
inlineoverridevirtual |
Return the modification time of a file.
Returns FDateTime::MinValue() on failure
实现了 IPlatformFile.
被 FCookedIterativeNetworkFile , 以及 FStreamingNetworkPlatformFile 重载.
|
overridevirtual |
Initializes platform file.
| Inner | Platform file to wrap by this file. |
| CmdLine | Command line to parse. |
实现了 IPlatformFile.
|
protectedvirtual |
Initialize network platform file give the specified host IP
| Inner | Inner platform file |
| HostIP | host IP address |
|
overridevirtual |
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 |
实现了 IPlatformFile.
被 FCookedIterativeNetworkFile , 以及 FStreamingNetworkPlatformFile 重载.
|
overridevirtual |
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. |
重载 IPlatformFile .
被 FCookedIterativeNetworkFile , 以及 FStreamingNetworkPlatformFile 重载.
|
overridevirtual |
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 |
实现了 IPlatformFile.
|
overridevirtual |
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. |
重载 IPlatformFile .
|
overridevirtual |
Attempt to move a file.
Return true if successful. Will not overwrite existing files.
实现了 IPlatformFile.
被 FCookedIterativeNetworkFile , 以及 FStreamingNetworkPlatformFile 重载.
|
overridevirtual |
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. |
实现了 IPlatformFile.
被 FCookedIterativeNetworkFile , 以及 FStreamingNetworkPlatformFile 重载.
|
overridevirtual |
Attempt to open a file for writing.
If successful will return a non-nullptr pointer. Close the file by delete'ing the handle.
实现了 IPlatformFile.
被 FStreamingNetworkPlatformFile , 以及 FCookedIterativeNetworkFile 重载.
|
protectedvirtual |
Send a heartbeat message to the file server.
This will tell it we are alive, as well as get back a list of files that have been updated on the server (so we can toss our copy)
|
overridevirtual |
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 |
重载 IPlatformFile .
|
overridevirtual |
Attempt to change the read only status of a file.
Return true if successful.
实现了 IPlatformFile.
被 FCookedIterativeNetworkFile , 以及 FStreamingNetworkPlatformFile 重载.
|
overridevirtual |
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
重载 IPlatformFile .
被 FCookedIterativeNetworkFile , 以及 FStreamingNetworkPlatformFile 重载.