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
10
class
EventSender
11
{
12
public
:
13
EventSender
(
EventHandler
& handler)
14
:
_handler
(handler)
15
{
16
}
17
EventSender
() =
delete
;
18
void
sendEvent
(
Event
* event)
19
{
20
_handler
.
addEvent
(event);
21
}
22
23
private
:
24
EventHandler
&
_handler
;
25
};
26
27
}
28
29
#endif
EventHandler.h
sm::EventHandler
Definition:
EventHandler.h:10
sm::EventHandler::addEvent
void addEvent(Event *e)
Definition:
EventHandler.h:12
sm::Event
Event class used in the state machine.
Definition:
Event.h:32
sm::EventSender
Definition:
EventSender.h:11
sm::EventSender::sendEvent
void sendEvent(Event *event)
Definition:
EventSender.h:18
sm::EventSender::EventSender
EventSender(EventHandler &handler)
Definition:
EventSender.h:13
sm::EventSender::EventSender
EventSender()=delete
sm::EventSender::_handler
EventHandler & _handler
Definition:
EventSender.h:24
sm
Collection of classes for a state machine implementation used in the Erleb-AR app.
Definition:
Event.h:25
apps
source
sm
EventSender.h
Generated by
1.9.1