UnrealModFramework
Mod framework API
Loading...
Searching...
No Matches
Mod::IO::FDirectoryWatcher Class Referencefinal

Nonblocking watch for direct children of one physical directory. More...

#include <ModDirectoryWatcher.h>

Public Member Functions

 FDirectoryWatcher ()
 Constructs an inactive watch on the calling thread.
 ~FDirectoryWatcher ()
 Releases the native watch and any pending notifications.
bool Start (const FString &Directory)
 Starts a watch, replacing any previous registration.
void Stop ()
 Releases the active registration.
FDirectoryChanges ReadChanges ()
 Takes the available notifications without waiting.
bool IsActive () const
 Checks whether the native registration is active.

Detailed Description

Nonblocking watch for direct children of one physical directory.

Member Function Documentation

◆ IsActive()

bool Mod::IO::FDirectoryWatcher::IsActive ( ) const

Checks whether the native registration is active.

Returns
Whether the watch can receive notifications.

◆ ReadChanges()

FDirectoryChanges Mod::IO::FDirectoryWatcher::ReadChanges ( )

Takes the available notifications without waiting.

Returns
Entry names and whether enumeration is required.

◆ Start()

bool Mod::IO::FDirectoryWatcher::Start ( const FString & Directory)

Starts a watch, replacing any previous registration.

Parameters
DirectoryAbsolute path of an existing directory.
Returns
Whether the native watch started.

Start, read, and stop from the same thread.


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