28 #ifndef FSW__MONITOR_FACTORY_H 29 # define FSW__MONITOR_FACTORY_H 74 std::vector<std::string> paths,
76 void *context =
nullptr);
93 std::vector<std::string> paths,
95 void *context =
nullptr);
102 static std::vector<std::string>
get_types();
119 static std::map<std::string, fsw_monitor_type>& creators_by_string();
Base class of all monitors.
Definition: monitor.hpp:146
Main namespace of libfswatch.
Definition: event.cpp:23
Header defining the default set type used by the library.
static monitor * create_monitor(fsw_monitor_type type, std::vector< std::string > paths, FSW_EVENT_CALLBACK *callback, void *context=nullptr)
Creates a monitor of the specified type.
Definition: monitor_factory.cpp:69
static std::vector< std::string > get_types()
Get the available monitor types.
Definition: monitor_factory.cpp:153
fsw_monitor_type
Available monitors.
Definition: cmonitor.h:43
Header of the fsw::monitor class.
Object factory class for fsw::monitor instances.
Definition: monitor_factory.hpp:56
static bool exists_type(const std::string &name)
Checks whether a monitor of the type specified by name exists.
Definition: monitor_factory.cpp:146
void FSW_EVENT_CALLBACK(const std::vector< event > &, void *)
Function definition of an event callback.
Definition: monitor.hpp:60