1#ifndef UVW_FS_EVENT_INCLUDE_H
2#define UVW_FS_EVENT_INCLUDE_H
15enum class UVFsEventFlags : std::underlying_type_t<uv_fs_event_flags> {
16 WATCH_ENTRY = UV_FS_EVENT_WATCH_ENTRY,
17 STAT = UV_FS_EVENT_STAT,
18 RECURSIVE = UV_FS_EVENT_RECURSIVE
21enum class UVFsEvent : std::underlying_type_t<uv_fs_event> {
69 static void startCallback(uv_fs_event_t *handle,
const char *filename,
int events,
int status);
72 using Watch = details::UVFsEvent;
73 using Event = details::UVFsEventFlags;
136# include "fs_event.cpp"
Utility class to handle flags.
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.