This commit is contained in:
Jonas Zeunert
2018-06-15 00:02:03 +02:00
parent ec41e9e314
commit d027d32e2f
19 changed files with 79 additions and 20 deletions

View File

@@ -0,0 +1,10 @@
/*
* Event.cpp
*
* Created on: Jun 15, 2018
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Rafael Vinci, Dr. Franca Rupprecht
*/

View File

@@ -0,0 +1,10 @@
/*
* EventHandler.cpp
*
* Created on: Jun 14, 2018
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Rafael Vinci, Dr. Franca Rupprecht
*/

View File

@@ -12,11 +12,11 @@
#ifndef INPUTEVENTHANDLER_H_ #ifndef INPUTEVENTHANDLER_H_
#define INPUTEVENTHANDLER_H_ #define INPUTEVENTHANDLER_H_
#include "Event.hpp"
#include "IInputDriver.h" #include "IInputDriver.h"
#include "../utilities/IEventHandler.h" #include "../utilities/IEventHandler.h"
#include "../utilities/config.h" #include "../utilities/config.h"
#include "Event.h"
namespace Input namespace Input
{ {

View File

@@ -14,9 +14,9 @@
#include <thread> #include <thread>
#include <mutex> #include <mutex>
#include "../utilities/BlockingQueue.hpp" #include "../utilities/BlockingQueue.h"
#include "Event.hpp" #include "Event.h"
#include "EventHandler.hpp" #include "EventHandler.h"
#define HANDLER_TIMEOUT 2000 #define HANDLER_TIMEOUT 2000

View File

@@ -12,7 +12,7 @@
#include <map> #include <map>
#include "../utilities/InputGPIOInterface.h" #include "../utilities/InputGPIOInterface.h"
#include "Event.hpp" #include "Event.h"
#include "EventNotifier.h" #include "EventNotifier.h"
namespace Input namespace Input

View File

@@ -8,8 +8,8 @@
#ifndef SRC_INPUT_IEVENTNOTIFIER_H_ #ifndef SRC_INPUT_IEVENTNOTIFIER_H_
#define SRC_INPUT_IEVENTNOTIFIER_H_ #define SRC_INPUT_IEVENTNOTIFIER_H_
#include "Event.h"
#include "IEventHandler.h" #include "IEventHandler.h"
#include "Event.hpp"
namespace Input namespace Input
{ {

View File

@@ -0,0 +1,10 @@
/*
* InputDriver.cpp
*
* Created on: Jun 15, 2018
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Rafael Vinci, Dr. Franca Rupprecht
*/

View File

@@ -4,8 +4,8 @@
* Created on: May 31, 2018 * Created on: May 31, 2018
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Rafael Vinci, Dr. Franca Rupprecht * Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Rafael Vinci, Dr. Franca Rupprecht
*/ */
#ifndef SRC_INPUT_INPUTDRIVER_HPP_ #ifndef SRC_INPUT_INPUTDRIVER_H_
#define SRC_INPUT_INPUTDRIVER_HPP_ #define SRC_INPUT_INPUTDRIVER_H_
#include "../utilities/config.h" #include "../utilities/config.h"
@@ -51,4 +51,4 @@ private:
} }
#endif /* SRC_INPUT_INPUTDRIVER_HPP_ */ #endif /* SRC_INPUT_INPUTDRIVER_H_ */

View File

@@ -0,0 +1,10 @@
/*
* InputDriverFactory.cpp
*
* Created on: Jun 14, 2018
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Rafael Vinci, Dr. Franca Rupprecht
*/

View File

@@ -0,0 +1,10 @@
/*
* BlockingQueue.cpp
*
* Created on: Jun 15, 2018
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Rafael Vinci, Dr. Franca Rupprecht
*/

View File

@@ -5,8 +5,8 @@
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Rafael Vinci, Dr. Franca Rupprecht * Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Rafael Vinci, Dr. Franca Rupprecht
*/ */
#ifndef SRC_UTILITIES_BLOCKINGQUEUE_HPP_ #ifndef SRC_UTILITIES_BLOCKINGQUEUE_H_
#define SRC_UTILITIES_BLOCKINGQUEUE_HPP_ #define SRC_UTILITIES_BLOCKINGQUEUE_H_
#include <mutex> #include <mutex>
#include <condition_variable> #include <condition_variable>
@@ -42,4 +42,4 @@ public:
#endif /* SRC_UTILITIES_BLOCKINGQUEUE_HPP_ */ #endif /* SRC_UTILITIES_BLOCKINGQUEUE_H_ */

View File

@@ -0,0 +1,10 @@
/*
* GPIOInterface.cpp
*
* Created on: Jun 15, 2018
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Rafael Vinci, Dr. Franca Rupprecht
*/

View File

@@ -10,8 +10,8 @@
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Rafael Vinci, Dr. Franca Rupprecht * Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Rafael Vinci, Dr. Franca Rupprecht
*/ */
#ifndef SRC_UTILITIES_GPIOINTERFACE_HPP_ #ifndef SRC_UTILITIES_GPIOINTERFACE_H_
#define SRC_UTILITIES_GPIOINTERFACE_HPP_ #define SRC_UTILITIES_GPIOINTERFACE_H_
#include <fstream> #include <fstream>
#include "config.h" #include "config.h"
@@ -39,4 +39,4 @@ public:
#endif /* SRC_UTILITIES_GPIOINTERFACE_HPP_ */ #endif /* SRC_UTILITIES_GPIOINTERFACE_H_ */

View File

@@ -8,7 +8,7 @@
#ifndef SRC_IEVENTHANDLER_H_ #ifndef SRC_IEVENTHANDLER_H_
#define SRC_IEVENTHANDLER_H_ #define SRC_IEVENTHANDLER_H_
#include "../input/Event.hpp" #include "../input/Event.h"
class IEventHandler class IEventHandler
{ {

View File

@@ -8,9 +8,8 @@
#ifndef SRC_UTILITIES_INPUTGPIOINTERFACE_H_ #ifndef SRC_UTILITIES_INPUTGPIOINTERFACE_H_
#define SRC_UTILITIES_INPUTGPIOINTERFACE_H_ #define SRC_UTILITIES_INPUTGPIOINTERFACE_H_
#include "GPIOInterface.hpp"
#include <exception> #include <exception>
#include "GPIOInterface.h"
class InputGPIOInterface : GPIOInterface class InputGPIOInterface : GPIOInterface
{ {

View File

@@ -8,7 +8,7 @@
#ifndef SRC_UTILITIES_OUTPUTGPIOINTERFACE_H_ #ifndef SRC_UTILITIES_OUTPUTGPIOINTERFACE_H_
#define SRC_UTILITIES_OUTPUTGPIOINTERFACE_H_ #define SRC_UTILITIES_OUTPUTGPIOINTERFACE_H_
#include "GPIOInterface.hpp" #include "GPIOInterface.h"
class OutputGPIOInterface : GPIOInterface class OutputGPIOInterface : GPIOInterface
{ {

View File

@@ -10,7 +10,7 @@
#define private public #define private public
#include "../../src/input/InputDriver.hpp" #include "../../src/input/InputDriver.h"
#include "../../src/input/Event.hpp" #include "../../src/input/Event.hpp"
#include "../../src/input/IEventNotifier.h" #include "../../src/input/IEventNotifier.h"