building events

This commit is contained in:
Neeflix
2018-05-31 21:35:54 +02:00
parent 424e1fafde
commit 3f1419cb29
4 changed files with 44 additions and 15 deletions

View File

@@ -6,6 +6,7 @@
*/
#include "../utilities/config.h"
#include "Detector.h"
#ifndef SRC_INPUT_INPUTDRIVER_HPP_
@@ -24,8 +25,9 @@ class InputDriver
{
public:
InputDriver(EventNotifier* event_notifier) :
event_notifier(event_notifier)
InputDriver(EventNotifier* event_notifier, Detector* detector) :
event_notifier(event_notifier),
detector(detector)
{
CLOG(INFO, INPUT_LOGGER) << "Created InputDriver";
}
@@ -34,6 +36,9 @@ public:
{
delete event_notifier;
event_notifier = NULL;
delete detector;
detector = NULL;
}
void register_event_handler(EventHandler* handler)
@@ -48,6 +53,7 @@ public:
private:
EventNotifier* event_notifier;
Detector* detector;
};
}