1 #ifndef LIBFILEZILLA_EVENT_HEADER 2 #define LIBFILEZILLA_EVENT_HEADER 45 virtual void const* derived_type()
const = 0;
57 template<
typename UniqueType,
typename...Values>
61 typedef UniqueType unique_type;
62 typedef std::tuple<Values...> tuple_type;
66 template<
typename First_Value,
typename...Remaining_Values>
67 explicit simple_event(First_Value&& value, Remaining_Values&& ...values)
68 :
v_(std::forward<First_Value>(value), std::forward<Remaining_Values>(values)...)
76 static void const*
type() {
77 static const char* f =
nullptr;
101 typedef unsigned long long timer_id;
104 struct timer_event_type{};
simple_event< timer_event_type, timer_id > timer_event
All timer events have this type.
Definition: event.hpp:110
tuple_type v_
The event value, gets built from the arguments passed in the constructur.
Definition: event.hpp:90
static void const * type()
Returns a unique pointer for the type such that can be used directly in derived_type.
Definition: event.hpp:76
This is the recommended event class.
Definition: event.hpp:58
virtual void const * derived_type() const
Simply returns type()
Definition: event.hpp:82
bool same_type(event_base const &ev)
Definition: event.hpp:96
virtual void const * derived_type() const =0
The namespace used by libfilezilla.
Definition: apply.hpp:16
Sets some global macros and further includes string.hpp.
Common base class for all events.
Definition: event.hpp:21