some refactoring
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#include <fstream>
|
||||
#include <memory>
|
||||
|
||||
#include "IInputDriver.h"
|
||||
#include "input/IInputDriver.h"
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "IInputDriver.h"
|
||||
|
||||
#include "IEventHandler.h"
|
||||
#include "Event.h"
|
||||
#include "input/Event.h"
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
@@ -8,7 +8,7 @@
|
||||
#ifndef SRC_IEVENTHANDLER_H_
|
||||
#define SRC_IEVENTHANDLER_H_
|
||||
|
||||
#include "Event.h"
|
||||
#include "input/Event.h"
|
||||
|
||||
class IEventHandler
|
||||
{
|
||||
@@ -8,7 +8,7 @@
|
||||
#ifndef SRC_INPUT_IINPUTDRIVER_H_
|
||||
#define SRC_INPUT_IINPUTDRIVER_H_
|
||||
|
||||
#include "IEventHandler.h"
|
||||
#include "input/IEventHandler.h"
|
||||
#include <memory>
|
||||
|
||||
namespace flippR_driver
|
||||
@@ -7,12 +7,18 @@
|
||||
|
||||
#include <array>
|
||||
|
||||
namespace flippr_driver
|
||||
{
|
||||
namespace output
|
||||
{
|
||||
|
||||
class IEightDigitDisplay
|
||||
{
|
||||
public:
|
||||
virtual void write_score(int score);
|
||||
virtual void write_content(std::array<char, 8> content);
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
#endif //FLIPPR_DRIVER_IEIGHTDIGITDISPLAY_H
|
||||
31
FlippR-Driver/include/output/IOutputDisplay.h
Normal file
31
FlippR-Driver/include/output/IOutputDisplay.h
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* IOutputDisplay.h
|
||||
*
|
||||
* Created on: Nov 20, 2018
|
||||
* Author: johannes
|
||||
*/
|
||||
|
||||
#ifndef SRC_OUTPUT_IOUTPUTDISPLAY_H_
|
||||
#define SRC_OUTPUT_IOUTPUTDISPLAY_H_
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace output
|
||||
{
|
||||
|
||||
class IDisplay
|
||||
{
|
||||
|
||||
public:
|
||||
IDisplay();
|
||||
virtual ~IDisplay();
|
||||
|
||||
virtual void write_score(int score) = 0;
|
||||
virtual void write_content(std::array<char, DigitCount> content) = 0;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif /* SRC_OUTPUT_IOUTPUTDISPLAY_H_ */
|
||||
@@ -7,10 +7,18 @@
|
||||
|
||||
#include <array>
|
||||
|
||||
namespace flippr_driver
|
||||
{
|
||||
namespace output
|
||||
{
|
||||
|
||||
class ISevenDigitDisplay
|
||||
{
|
||||
public:
|
||||
virtual void write_score(int score);
|
||||
virtual void write_content(std::array<char, 7> content);
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
#endif //FLIPPR_DRIVER_ISEVENDIGITDISPLAY_H
|
||||
Reference in New Issue
Block a user