Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FLocalTimestampDirectoryVisitor Class Reference

#include <LocalTimestampDirectoryVisitor.h>

+ Inheritance diagram for FLocalTimestampDirectoryVisitor:
+ Collaboration diagram for FLocalTimestampDirectoryVisitor:

Public Member Functions

 FLocalTimestampDirectoryVisitor (IPlatformFile &InFileInterface, const TArray< FString > &InDirectoriesToIgnore, const TArray< FString > &InDirectoriesToNotRecurse, bool bInCacheDirectories=false, bool bInMakeLowerCase=false)
 
virtual bool Visit (const TCHAR *FilenameOrDirectory, bool bIsDirectory)
 
- Public Member Functions inherited from IPlatformFile::FDirectoryVisitor
 FDirectoryVisitor (EDirectoryVisitorFlags InDirectoryVisitorFlags=EDirectoryVisitorFlags::None)
 
virtual ~FDirectoryVisitor ()
 
FORCEINLINE bool IsThreadSafe () const
 

Public Attributes

TMap< FString, FDateTimeFileTimes
 
- Public Attributes inherited from IPlatformFile::FDirectoryVisitor
EDirectoryVisitorFlags DirectoryVisitorFlags
 

Private Attributes

bool bCacheDirectories
 
bool bMakeLowerCase
 
TArray< FStringDirectoriesToIgnore
 
TArray< FStringDirectoriesToNotRecurse
 
IPlatformFileFileInterface
 

Detailed Description

Visitor to gather local files with their timestamps.

Definition at line 18 of file LocalTimestampDirectoryVisitor.h.

Constructor & Destructor Documentation

◆ FLocalTimestampDirectoryVisitor()

FLocalTimestampDirectoryVisitor::FLocalTimestampDirectoryVisitor ( IPlatformFile & InFileInterface,
const TArray< FString > & InDirectoriesToIgnore,
const TArray< FString > & InDirectoriesToNotRecurse,
bool bInCacheDirectories = false,
bool bInMakeLowerCase = false )

Creates and initializes a new instance.

Parameters
InFileInterface- The platform file interface to use.
InDirectoriesToIgnore- The list of directories to ignore.
InDirectoriesToNotRecurse- The list of directories to not visit recursively.
bInCacheDirectories- Whether to cache the directories.
bInMakeLowerCase- Whether to lower case filenames and directories.

Member Function Documentation

◆ Visit()

virtual bool FLocalTimestampDirectoryVisitor::Visit ( const TCHAR * FilenameOrDirectory,
bool bIsDirectory )
virtual

Callback for a single file or a directory in a directory iteration.

Parameters
FilenameOrDirectoryIf bIsDirectory is true, this is a directory (with no trailing path delimiter), otherwise it is a file name.
bIsDirectorytrue if FilenameOrDirectory is a directory.
Returns
true if the iteration should continue.

Implements IPlatformFile::FDirectoryVisitor.

Member Data Documentation

◆ bCacheDirectories

bool FLocalTimestampDirectoryVisitor::bCacheDirectories
private

Definition at line 46 of file LocalTimestampDirectoryVisitor.h.

◆ bMakeLowerCase

bool FLocalTimestampDirectoryVisitor::bMakeLowerCase
private

Definition at line 49 of file LocalTimestampDirectoryVisitor.h.

◆ DirectoriesToIgnore

TArray<FString> FLocalTimestampDirectoryVisitor::DirectoriesToIgnore
private

Definition at line 52 of file LocalTimestampDirectoryVisitor.h.

◆ DirectoriesToNotRecurse

TArray<FString> FLocalTimestampDirectoryVisitor::DirectoriesToNotRecurse
private

Definition at line 55 of file LocalTimestampDirectoryVisitor.h.

◆ FileInterface

IPlatformFile& FLocalTimestampDirectoryVisitor::FileInterface
private

Definition at line 58 of file LocalTimestampDirectoryVisitor.h.

◆ FileTimes

TMap<FString, FDateTime> FLocalTimestampDirectoryVisitor::FileTimes

Relative paths to local files and their timestamps.

Definition at line 24 of file LocalTimestampDirectoryVisitor.h.


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