25#ifndef FSW_WIN_DIRECTORY_CHANGE_EVENT_H
26# define FSW_WIN_DIRECTORY_CHANGE_EVENT_H
44 class directory_change_event
51 std::unique_ptr<void,
decltype(free)*> buffer = {
nullptr, free};
52 std::unique_ptr<OVERLAPPED,
decltype(free)*> overlapped = {
static_cast<OVERLAPPED *
> (malloc(
sizeof (OVERLAPPED))), free};
55 directory_change_event(
size_t buffer_length = 16);
56 bool is_io_incomplete();
57 bool is_buffer_overflowed();
58 bool read_changes_async();
61 std::vector<event> get_events();
Helper class to get the system-defined error message for a Microsoft Windows' error code.
Definition win_error_message.hpp:42
A RAII wrapper around Microsoft Windows HANDLE.
Definition win_handle.hpp:38
Header of the fsw::event class.
Main namespace of libfswatch.
Definition event.cpp:24
Header of the fsw::win_error_message class.
Header of the fsw::win_handle class.