Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FFileHandleRegistry Class Referenceabstract

#include <PlatformFileCommon.h>

+ Collaboration diagram for FFileHandleRegistry:

Public Member Functions

 FFileHandleRegistry (int32 InMaxOpenHandles)
 
virtual ~FFileHandleRegistry ()=default
 
FRegisteredFileHandleInitialOpenFile (const TCHAR *Filename)
 
void UnTrackAndCloseFile (FRegisteredFileHandle *Handle)
 
void TrackStartRead (FRegisteredFileHandle *Handle)
 
void TrackEndRead (FRegisteredFileHandle *Handle)
 

Protected Member Functions

virtual FRegisteredFileHandlePlatformInitialOpenFile (const TCHAR *Filename)=0
 
virtual bool PlatformReopenFile (FRegisteredFileHandle *)=0
 
virtual void PlatformCloseFile (FRegisteredFileHandle *)=0
 

Private Member Functions

void FreeHandles ()
 
void LinkToTail (FRegisteredFileHandle *Handle)
 
void UnLink (FRegisteredFileHandle *Handle)
 
FRegisteredFileHandlePopFromHead ()
 

Private Attributes

FCriticalSection LockSection
 
int32 MaxOpenHandles
 
FRegisteredFileHandleOpenAndAvailableForClosingHead
 
FRegisteredFileHandleOpenAndAvailableForClosingTail
 
FThreadSafeCounter HandlesCurrentlyInUse
 

Detailed Description

Definition at line 35 of file PlatformFileCommon.h.

Constructor & Destructor Documentation

◆ FFileHandleRegistry()

FFileHandleRegistry::FFileHandleRegistry ( int32 InMaxOpenHandles)
inline

Definition at line 38 of file PlatformFileCommon.h.

◆ ~FFileHandleRegistry()

virtual FFileHandleRegistry::~FFileHandleRegistry ( )
virtualdefault

Member Function Documentation

◆ FreeHandles()

void FFileHandleRegistry::FreeHandles ( )
inlineprivate

Definition at line 121 of file PlatformFileCommon.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitialOpenFile()

FRegisteredFileHandle * FFileHandleRegistry::InitialOpenFile ( const TCHAR * Filename)
inline

Definition at line 47 of file PlatformFileCommon.h.

+ Here is the call graph for this function:

◆ LinkToTail()

void FFileHandleRegistry::LinkToTail ( FRegisteredFileHandle * Handle)
inlineprivate

Definition at line 146 of file PlatformFileCommon.h.

+ Here is the caller graph for this function:

◆ PlatformCloseFile()

virtual void FFileHandleRegistry::PlatformCloseFile ( FRegisteredFileHandle * )
protectedpure virtual
+ Here is the caller graph for this function:

◆ PlatformInitialOpenFile()

virtual FRegisteredFileHandle * FFileHandleRegistry::PlatformInitialOpenFile ( const TCHAR * Filename)
protectedpure virtual
+ Here is the caller graph for this function:

◆ PlatformReopenFile()

virtual bool FFileHandleRegistry::PlatformReopenFile ( FRegisteredFileHandle * )
protectedpure virtual
+ Here is the caller graph for this function:

◆ PopFromHead()

FRegisteredFileHandle * FFileHandleRegistry::PopFromHead ( )
inlineprivate

Definition at line 190 of file PlatformFileCommon.h.

+ Here is the caller graph for this function:

◆ TrackEndRead()

void FFileHandleRegistry::TrackEndRead ( FRegisteredFileHandle * Handle)
inline

Definition at line 106 of file PlatformFileCommon.h.

+ Here is the call graph for this function:

◆ TrackStartRead()

void FFileHandleRegistry::TrackStartRead ( FRegisteredFileHandle * Handle)
inline

Definition at line 86 of file PlatformFileCommon.h.

+ Here is the call graph for this function:

◆ UnLink()

void FFileHandleRegistry::UnLink ( FRegisteredFileHandle * Handle)
inlineprivate

Definition at line 164 of file PlatformFileCommon.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UnTrackAndCloseFile()

void FFileHandleRegistry::UnTrackAndCloseFile ( FRegisteredFileHandle * Handle)
inline

Definition at line 68 of file PlatformFileCommon.h.

+ Here is the call graph for this function:

Member Data Documentation

◆ HandlesCurrentlyInUse

FThreadSafeCounter FFileHandleRegistry::HandlesCurrentlyInUse
private

Definition at line 223 of file PlatformFileCommon.h.

◆ LockSection

FCriticalSection FFileHandleRegistry::LockSection
private

Definition at line 216 of file PlatformFileCommon.h.

◆ MaxOpenHandles

int32 FFileHandleRegistry::MaxOpenHandles
private

Definition at line 218 of file PlatformFileCommon.h.

◆ OpenAndAvailableForClosingHead

FRegisteredFileHandle* FFileHandleRegistry::OpenAndAvailableForClosingHead
private

Definition at line 220 of file PlatformFileCommon.h.

◆ OpenAndAvailableForClosingTail

FRegisteredFileHandle* FFileHandleRegistry::OpenAndAvailableForClosingTail
private

Definition at line 221 of file PlatformFileCommon.h.


The documentation for this class was generated from the following file: