refactoring to h and cpp
This commit is contained in:
@@ -4,7 +4,32 @@
|
||||
* Created on: Jun 15, 2018
|
||||
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Rafael Vinci, Dr. Franca Rupprecht
|
||||
*/
|
||||
|
||||
|
||||
#include "InputDriver.h"
|
||||
|
||||
using namespace Input;
|
||||
InputDriver::InputDriver(IEventNotifier* event_notifier, IDetector* detector) :
|
||||
event_notifier(event_notifier), detector(detector)
|
||||
{
|
||||
CLOG(INFO, INPUT_LOGGER) << "Created InputDriver";
|
||||
}
|
||||
|
||||
InputDriver::~InputDriver()
|
||||
{
|
||||
delete event_notifier;
|
||||
event_notifier = NULL;
|
||||
|
||||
delete detector;
|
||||
detector = NULL;
|
||||
}
|
||||
|
||||
void InputDriver::register_event_handler(IEventHandler* handler)
|
||||
{
|
||||
event_notifier->register_event_handler(handler);
|
||||
}
|
||||
|
||||
void InputDriver::unregister_event_handler(IEventHandler* handler)
|
||||
{
|
||||
event_notifier->unregister_event_handler(handler);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user