refactored namespaces and added driverfactory
This commit is contained in:
18
FlippR-Driver/include/DriverFactory.h
Normal file
18
FlippR-Driver/include/DriverFactory.h
Normal 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
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <string>
|
||||
|
||||
|
||||
namespace Input
|
||||
namespace FlippR_Driver::Input
|
||||
{
|
||||
|
||||
class Event
|
||||
|
||||
@@ -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_ */
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "IEventHandler.h"
|
||||
#include <memory>
|
||||
|
||||
namespace Input {
|
||||
namespace FlippR_Driver::Input {
|
||||
|
||||
class IInputDriver
|
||||
{
|
||||
|
||||
@@ -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_ */
|
||||
Reference in New Issue
Block a user