refactored namespaces and added driverfactory

This commit is contained in:
Jonas Zeunert
2018-09-13 23:05:49 +02:00
parent 7b3327f5ef
commit 9f0bad92a1
29 changed files with 68 additions and 55 deletions

View File

@@ -0,0 +1,18 @@
//
// Created by rhetenor on 13.09.18.
//
#ifndef FLIPPR_DRIVER_DRIVERFACTORY_H
#define FLIPPR_DRIVER_DRIVERFACTORY_H
#include <fstream>
#include <memory>
#include "IInputDriver.h"
namespace FlippR_Driver
{
static std::shared_ptr<FlippR_Driver::Input::IInputDriver> get_InputDriver(std::istream& input_config_stream, std::istream& matrix_config_stream);
}
#endif //FLIPPR_DRIVER_DRIVERFACTORY_H

View File

@@ -12,7 +12,7 @@
#include <string>
namespace Input
namespace FlippR_Driver::Input
{
class Event

View File

@@ -15,7 +15,7 @@ class IEventHandler
public:
virtual ~IEventHandler(){};
virtual void handle(Input::Event& event) = 0;
virtual void handle(FlippR_Driver::Input::Event& event) = 0;
};
#endif /* SRC_IEVENTHANDLER_H_ */

View File

@@ -11,7 +11,7 @@
#include "IEventHandler.h"
#include <memory>
namespace Input {
namespace FlippR_Driver::Input {
class IInputDriver
{

View File

@@ -1,19 +0,0 @@
/*
* IInputDriverFactory.h
*
* Created on: Jun 13, 2018
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Rafael Vinci, Dr. Franca Rupprecht
*/
#ifndef SRC_INPUT_IINPUTDRIVERFACTORY_H_
#define SRC_INPUT_IINPUTDRIVERFACTORY_H_
namespace Input {
class IInputDriverFactory
{
};
}
#endif /* SRC_INPUT_IINPUTDRIVERFACTORY_H_ */