building events
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user