added distribution events

This commit is contained in:
Jonas Zeunert
2018-09-21 00:41:13 +02:00
parent 0d0c94253e
commit 5f7dd47f2b
7 changed files with 70 additions and 9 deletions

View File

@@ -21,7 +21,7 @@
#include "utilities/IInputGPIOInterface.h"
#include "IDetector.h"
#include "Event.h"
#include "DistributingEvent.h"
#include "IEventNotifier.h"
namespace FlippR_Driver
@@ -33,7 +33,7 @@ class Detector : public IDetector
{
public:
Detector(std::unique_ptr<IInputGPIOInterface> input_gpio_interface, std::map<char, std::shared_ptr<Event>> events, std::shared_ptr<IEventNotifier> event_notifier);
Detector(std::unique_ptr<IInputGPIOInterface> input_gpio_interface, std::map<char, std::shared_ptr<DistributingEvent>> events, std::shared_ptr<IEventNotifier> event_notifier);
~Detector();
private:
@@ -43,7 +43,7 @@ private:
private:
std::unique_ptr<IInputGPIOInterface> input_gpio_interface;
std::map<char, std::shared_ptr<Event>> events;
std::map<char, std::shared_ptr<DistributingEvent>> events;
std::shared_ptr<IEventNotifier> event_notifier;