33 # include "../c/cevent.h"
57 event(std::string path, time_t evt_time, std::vector<fsw_event_flag> flags);
85 std::vector<fsw_event_flag>
get_flags()
const;
108 std::vector<fsw_event_flag> evt_flags;
118 std::ostream& operator<<(std::ostream& out,
const fsw_event_flag flag);
fsw_event_flag
Backend-agnostic change flags.
Definition: cevent.h:63
Main namespace of libfswatch.
Definition: event.cpp:23
Type representing a file change event.
Definition: event.hpp:47
static fsw_event_flag get_event_flag_by_name(const std::string &name)
Get event flag by name.
Definition: event.cpp:49
event(std::string path, time_t evt_time, std::vector< fsw_event_flag > flags)
Constructs an event.
Definition: event.cpp:25
std::vector< fsw_event_flag > get_flags() const
Returns the flags of the event.
Definition: event.cpp:44
static std::string get_event_flag_name(const fsw_event_flag &flag)
Get the name of an event flag.
Definition: event.cpp:79
time_t get_time() const
Returns the time of the event.
Definition: event.cpp:39
virtual ~event()
Destructs an event.
Definition: event.cpp:30
std::string get_path() const
Returns the path of the event.
Definition: event.cpp:34