1 #ifndef UVW_FS_EVENT_INCLUDE_H
2 #define UVW_FS_EVENT_INCLUDE_H
19 enum class UVFsEventFlags: std::underlying_type_t<uv_fs_event_flags> {
20 WATCH_ENTRY = UV_FS_EVENT_WATCH_ENTRY,
21 STAT = UV_FS_EVENT_STAT,
22 RECURSIVE = UV_FS_EVENT_RECURSIVE
26 enum class UVFsEvent: std::underlying_type_t<uv_fs_event> {
77 static void startCallback(uv_fs_event_t *handle,
const char *filename,
int events,
int status);
80 using Watch = details::UVFsEvent;
81 using Event = details::UVFsEventFlags;
146 #include "fs_event.cpp"
The FsEventHandle handle.
void stop()
Stops polling the file descriptor.
void start(const std::string &path, Flags< Event > flags=Flags< Event >{})
Starts watching the specified path.
bool init()
Initializes the handle.
void start(const std::string &path, Event flag)
Starts watching the specified path.
std::string path() noexcept
Gets the path being monitored.
const char * filename
The path to the file being monitored.
Flags< details::UVFsEvent > flags
Detected events all in one.