5#ifndef WPINET_UV_FSEVENT_H_
6#define WPINET_UV_FSEVENT_H_
26 struct private_init {};
55 void Start(std::string_view path,
unsigned int flags = 0);
SignalBase is an implementation of the observer pattern, through the use of an emitting object and sl...
Definition Signal.h:495
Filesystem Event handle.
Definition FsEvent.h:25
sig::Signal< const char *, int > fsEvent
Signal generated when a filesystem change occurs.
Definition FsEvent.h:75
void Start(std::string_view path, unsigned int flags=0)
Start watching the specified path for changes.
~FsEvent() noexcept override=default
std::string GetPath()
Get the path being monitored.
void Stop()
Stop watching for changes.
Definition FsEvent.h:60
static std::shared_ptr< FsEvent > Create(Loop &loop)
Create a filesystem event handle.
FsEvent(const private_init &)
Definition FsEvent.h:29
bool Invoke(F &&f, Args &&... args) const
Definition Handle.h:267
Handle.
Definition Handle.h:290
uv_fs_event_t * GetRaw() const noexcept
Definition Handle.h:305
Event loop.
Definition Loop.h:37
Implement std::hash so that hash_code can be used in STL containers.
Definition PointerIntPair.h:280
flags
Definition http_parser.h:206
UV_EXTERN int uv_fs_event_stop(uv_fs_event_t *handle)