Toolbox snapshot
The Reactive C++ Toolbox
|
FileWatcher watches for changes to files. More...
#include <toolbox/io/Inotify.hpp>
Public Types | |
using | Path = std::filesystem::path |
using | Slot = BasicSlot< const Path &, int, std::uint32_t > |
Public Member Functions | |
FileWatcher (Reactor &r, Inotify &inotify) | |
~FileWatcher ()=default | |
FileWatcher (const FileWatcher &)=delete | |
FileWatcher & | operator= (const FileWatcher &)=delete |
FileWatcher (FileWatcher &&) noexcept=default | |
FileWatcher & | operator= (FileWatcher &&) noexcept=default |
void | watch (const Path &path, Slot slot, std::uint32_t mask=IN_ALL_EVENTS) |
FileWatcher watches for changes to files.
Definition at line 137 of file Inotify.hpp.
using toolbox::io::FileWatcher::Path = std::filesystem::path |
Definition at line 139 of file Inotify.hpp.
Definition at line 140 of file Inotify.hpp.
Definition at line 22 of file Inotify.cpp.
|
default |
|
delete |
|
defaultnoexcept |
|
delete |
|
defaultnoexcept |
void toolbox::io::FileWatcher::watch | ( | const Path & | path, |
Slot | slot, | ||
std::uint32_t | mask = IN_ALL_EVENTS |
||
) |
Definition at line 28 of file Inotify.cpp.
Referenced by watch().