libfswatch  1.9.3
Public Member Functions | Public Attributes | List of all members
fsw::directory_change_event Class Reference

Header of the fsw::directory_change_event class, a helper class to wrap Microsoft Windows' ReadDirectoryChangesW function and a common workflow to detect file system changes. More...

#include <win_directory_change_event.hpp>

Public Member Functions

 directory_change_event (size_t buffer_length=16)
 
bool is_io_incomplete ()
 
bool is_buffer_overflowed ()
 
bool read_changes_async ()
 
bool try_read ()
 
void continue_read ()
 
std::vector< eventget_events ()
 

Public Attributes

std::wstring path
 
win_handle handle
 
size_t buffer_size
 
DWORD bytes_returned
 
std::unique_ptr< void, decltype(free)* > buffer = {nullptr, free}
 
std::unique_ptr< OVERLAPPED, decltype(free)* > overlapped = {static_cast<OVERLAPPED *> (malloc(sizeof (OVERLAPPED))), free}
 
win_error_message read_error
 

Detailed Description

Header of the fsw::directory_change_event class, a helper class to wrap Microsoft Windows' ReadDirectoryChangesW function and a common workflow to detect file system changes.


The documentation for this class was generated from the following files: