libfswatch  1.9.3
filter.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014-2015 Enrico M. Crisostomo
3  *
4  * This program is free software; you can redistribute it and/or modify it under
5  * the terms of the GNU General Public License as published by the Free Software
6  * Foundation; either version 3, or (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
11  * details.
12  *
13  * You should have received a copy of the GNU General Public License along with
14  * this program. If not, see <http://www.gnu.org/licenses/>.
15  */
28 #ifndef FSW__FILTER_H
29 # define FSW__FILTER_H
30 
31 # include <string>
32 # include "../c/cfilter.h"
33 
34 namespace fsw
35 {
57  typedef struct monitor_filter
58  {
66  std::string text;
67 
72 
78 
87  bool extended;
89 }
90 
91 #endif /* FSW__FILTER_H */
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:71
std::string text
Regular expression used to match the paths.
Definition: filter.hpp:66
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:87
bool case_sensitive
Flag indicating whether monitor_filter::text is a case sensitive regular expression.
Definition: filter.hpp:77
Path filters used to accept or reject file change events.
Definition: filter.hpp:57