FileSystemWatcherAsyncT is an implementation of SC::FileSystemWatcher that uses SC::Async.
More...
#include <FileSystemWatcher.h>
|
|
using | Self = FileSystemWatcherAsyncT |
| |
|
using | T_AsyncLoopWakeUp = typename T_AsyncEventLoop::LoopWakeUp |
| |
|
using | T_AsyncFilePoll = typename T_AsyncEventLoop::FilePoll |
| |
|
using | T_EventObject = typename T_AsyncEventLoop::EventObjectType |
| |
|
using | T_AsyncResult = typename T_AsyncEventLoop::ResultType |
| |
|
|
void | init (T_AsyncEventLoop &loop) |
| |
|
|
T_AsyncEventLoop * | eventLoop = nullptr |
| |
|
Function< void(T_AsyncResult &)> | onAsyncPollClose |
| |
|
FileSystemWatcher * | fileSystemWatcher = nullptr |
| |
template<typename T_AsyncEventLoop>
struct SC::FileSystemWatcherAsyncT< T_AsyncEventLoop >
FileSystemWatcherAsyncT is an implementation of SC::FileSystemWatcher that uses SC::Async.
This class exists as a template is to break the dependency of SC::FileSystemWatcher from SC::AsyncEventLoop.
Example:
eventLoopRunner.init(eventLoop);
{
if (notification.getFullPath(fullPath))
{
switch (notification.operation)
{
console.
print(
"Modified {} {}\n", notification.relativePath, fullPath.view());
break;
console.
print(
"AddRemoveRename {} {}\n", notification.relativePath, fullPath.view());
break;
}
}
};
SC_TRY(fileSystemWatcher.
watch(folderWatcher,
"/path/to/dir"));
◆ windowsGetOverlapped()
template<typename T_AsyncEventLoop >
|
|
inlineoverrideprotectedvirtual |
◆ windowsStartFolderFilePoll()
template<typename T_AsyncEventLoop >
|
|
inlineoverrideprotectedvirtual |
◆ windowsStopFolderFilePoll()
template<typename T_AsyncEventLoop >
|
|
inlineoverrideprotectedvirtual |
The documentation for this struct was generated from the following file: