29 # define FSW__FILTER_H 32 # include "../c/cfilter.h" 120 static std::vector<monitor_filter>
read_from_file(
const std::string& path,
122 std::string) =
nullptr);
Main namespace of libfswatch.
Definition: event.cpp:23
fsw_filter_type
Event filter type.
Definition: cfilter.h:38
fsw_filter_type type
Filter type.
Definition: filter.hpp:72
std::string text
Regular expression used to match the paths.
Definition: filter.hpp:67
struct fsw::monitor_filter monitor_filter
Path filters used to accept or reject file change events.
bool extended
Flag indicating whether monitor_filter::text is an extended regular expression.
Definition: filter.hpp:88
bool case_sensitive
Flag indicating whether monitor_filter::text is a case sensitive regular expression.
Definition: filter.hpp:78
static std::vector< monitor_filter > read_from_file(const std::string &path, void(*err_handler)(std::string)=nullptr)
Load filters from the specified file.
Definition: filter.cpp:36
Path filters used to accept or reject file change events.
Definition: filter.hpp:58