FCookedIterativeNetworkFile

Wrapper to redirect the low level file system to a server

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

CookedIterativeFile

Header

/Engine/Source/Runtime/CookedIterativeFile/Public/CookedIterativeNetworkFile.h

Include

#include "CookedIterativeNetworkFile.h"

Syntax

class FCookedIterativeNetworkFile : public FNetworkPlatformFile

Remarks

Wrapper to redirect the low level file system to a server

Constructors

Name Description

Public function

FCookedIterativeNetworkFile()

Default Constructor

Destructors

Name Description

Public function Virtual

~FCookedIterativeNetworkFile()

Virtual destructor

Functions

Name Description

Public function Static

const TCHAR ...

 

GetTypeName()

Overridden from FNetworkPlatformFile

Name Description

Protected function Virtual Const

FString

 

GetVersionInfo()

Protected function Virtual

bool

 

InitializeInternal

(
    IPlatformFile* Inner,
    const TCHAR* HostIP
)

Initialize network platform file give the specified host IP

Protected function Virtual

void

 

OnFileUpdated

(
    const FString& LocalFilename
)

Protected function Virtual

void

 

ProcessServerCachedFilesResponse

(
    FArrayReader& InReponse,
    const int32 ServerPackageVersion,
    const int32 ServerPackageLicenseeVe...
)

Need to override what FNetworkPlatformFile does here

Overridden from IPlatformFile

Name Description

Protected function Virtual

bool

 

CopyFile

(
    const TCHAR* To,
    const TCHAR* From,
    EPlatformFileRead ReadFlags,
    EPlatformFileWrite WriteFlags
)

Copy a file. This will fail if the destination file already exists.

Protected function Virtual

bool

 

CreateDirectory

(
    const TCHAR* Directory
)

Create a directory and return true if the directory was created or already existed.

Protected function Virtual

bool

 

CreateDirectoryTree

(
    const TCHAR* Directory
)

Create a directory, including any parent directories and return true if the directory was created or already existed.

Protected function Virtual

bool

 

DeleteDirectory

(
    const TCHAR* Directory
)

Delete a directory and return true if the directory was deleted or otherwise does not exist.

Protected function Virtual

bool

 

DeleteDirectoryRecursively

(
    const TCHAR* Directory
)

Delete all files and subdirectories in a directory, then delete the directory itself

Protected function Virtual

bool

 

DeleteFile

(
    const TCHAR* Filename
)

Delete a file and return true if the file exists. Will not delete read only files.

Protected function Virtual

bool

 

DirectoryExists

(
    const TCHAR* Directory
)

Return true if the directory exists.

Protected function Virtual

bool

 

FileExists

(
    const TCHAR* Filename
)

Return true if the file exists.

Protected function Virtual

int64

 

FileSize

(
    const TCHAR* Filename
)

Return the size of the file, or -1 if it doesn't exist.

Protected function Virtual

FFileStatDat...

 

GetStatData

(
    const TCHAR* FilenameOrDirecto...
)

Return the stat data for the given file or directory.

Protected function Virtual

FDateTime

 

GetTimeStamp

(
    const TCHAR* Filename
)

Return the modification time of a file.

Protected function Virtual

bool

 

IsReadOnly

(
    const TCHAR* Filename
)

Return true if the file is read only.

Protected function Virtual

bool

 

IterateDirectory

(
    const TCHAR* Directory,
    IPlatformFile::FDirectoryVisitor& ...
)

Call the Visit function of the visitor once for each file or directory in a single directory.

Protected function Virtual

bool

 

IterateDirectoryRecursively

(
    const TCHAR* Directory,
    IPlatformFile::FDirectoryVisitor& ...
)

Call the Visit function of the visitor once for each file or directory in a directory tree.

Protected function Virtual

bool

 

IterateDirectoryStat

(
    const TCHAR* Directory,
    IPlatformFile::FDirectoryStatVisito...
)

Call the Visit function of the visitor once for each file or directory in a single directory.

Protected function Virtual

bool

 

IterateDirectoryStatRecursively

(
    const TCHAR* Directory,
    IPlatformFile::FDirectoryStatVisito...
)

Call the Visit function of the visitor once for each file or directory in a directory tree.

Protected function Virtual

bool

 

MoveFile

(
    const TCHAR* To,
    const TCHAR* From
)

Attempt to move a file. Return true if successful. Will not overwrite existing files.

Protected function Virtual

IFileHandle ...

 

OpenRead

(
    const TCHAR* Filename,
    bool bAllowWrite
)

Attempt to open a file for reading.

Protected function Virtual

IFileHandle ...

 

OpenWrite

(
    const TCHAR* Filename,
    bool bAppend,
    bool bAllowRead
)

Attempt to open a file for writing.

Protected function Virtual

bool

 

SetReadOnly

(
    const TCHAR* Filename,
    bool bNewReadOnlyValue
)

Attempt to change the read only status of a file. Return true if successful.

Protected function Virtual Const

bool

 

ShouldBeUsed

(
    IPlatformFile* Inner,
    const TCHAR* CmdLine
)

Checks if this platform file should be used even though it was not asked to be.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss