20 throw_event(
const std::string &event_name) {
25 throw_event(
const std::string &event_name,
28 event->add_parameter(p1);
33 throw_event(
const std::string &event_name,
37 event->add_parameter(p1);
38 event->add_parameter(p2);
43 throw_event(
const std::string &event_name,
48 event->add_parameter(p1);
49 event->add_parameter(p2);
50 event->add_parameter(p3);
55 throw_event(
const std::string &event_name,
61 event->add_parameter(p1);
62 event->add_parameter(p2);
63 event->add_parameter(p3);
64 event->add_parameter(p4);
77 const std::string &event_name) {
83 const std::string &event_name,
86 event->add_parameter(p1);
92 const std::string &event_name,
96 event->add_parameter(p1);
97 event->add_parameter(p2);
103 const std::string &event_name,
108 event->add_parameter(p1);
109 event->add_parameter(p2);
110 event->add_parameter(p3);
A class to monitor events from the C++ side of things.
An optional parameter associated with an event.
static EventQueue * get_global_event_queue()
Returns a pointer to the one global EventQueue object.
virtual void dispatch_event(const Event *event)
Calls the hooks assigned to the indicated single event.
A named event, possibly with parameters.
A ConstPointerTo is similar to a PointerTo, except it keeps a const pointer to the thing.