1 #ifndef OPM_EVENT_HEADER_INCLUDED
2 #define OPM_EVENT_HEADER_INCLUDED
30 virtual Event&
add (
const std::function <
void ()>& handler) = 0;
37 template <
typename T,
void (T::*member)()>
Event&
add (T& t);
84 class EventSource :
public Event {
86 virtual Event& add (
const std::function <
void ()>& handler);
87 virtual void signal ();
90 std::list <std::function <void ()> > handlers_;
94 #include "Event_impl.hpp"
virtual Event & add(const std::function< void()> &handler)=0
Register a callback to receive notifications from this event.
Interface to register interest in receiving notifications when a certain event, such as the completio...
Definition: Event.hpp:14