SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
EventSender.h
Go to the documentation of this file.
1 #ifndef SM_EVENT_SENDER_H
2 #define SM_EVENT_SENDER_H
3 
4 #include <sm/EventHandler.h>
5 
6 namespace sm
7 {
8 
9 // state is event sender
11 {
12 public:
14  : _handler(handler)
15  {
16  }
17  EventSender() = delete;
18  void sendEvent(Event* event)
19  {
20  _handler.addEvent(event);
21  }
22 
23 private:
25 };
26 
27 }
28 
29 #endif
void addEvent(Event *e)
Definition: EventHandler.h:12
Event class used in the state machine.
Definition: Event.h:32
void sendEvent(Event *event)
Definition: EventSender.h:18
EventSender(EventHandler &handler)
Definition: EventSender.h:13
EventSender()=delete
EventHandler & _handler
Definition: EventSender.h:24
Collection of classes for a state machine implementation used in the Erleb-AR app.
Definition: Event.h:25