implementing displays and refactor fail
This commit is contained in:
@@ -15,12 +15,11 @@ namespace output
|
||||
namespace items
|
||||
{
|
||||
|
||||
class IOutputDisplay
|
||||
class Display
|
||||
{
|
||||
|
||||
public:
|
||||
virtual ~IOutputDisplay()
|
||||
{};
|
||||
virtual ~IOutputDisplay() = default;
|
||||
|
||||
virtual void write_score(int score) = 0;
|
||||
};
|
||||
@@ -5,7 +5,7 @@
|
||||
#ifndef FLIPPR_DRIVER_IEIGHTDIGITDISPLAY_H
|
||||
#define FLIPPR_DRIVER_IEIGHTDIGITDISPLAY_H
|
||||
|
||||
#include "OutputDisplay.h"
|
||||
#include "Display.h"
|
||||
|
||||
#include <array>
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace output
|
||||
namespace items
|
||||
{
|
||||
|
||||
class IEightDigitDisplay : public IOutputDisplay
|
||||
class EightDigitDisplay : public Display
|
||||
{
|
||||
public:
|
||||
virtual void write_content(std::array<char, 8> content) = 0;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#ifndef FLIPPR_DRIVER_ISEVENDIGITDISPLAY_H
|
||||
#define FLIPPR_DRIVER_ISEVENDIGITDISPLAY_H
|
||||
|
||||
#include "OutputDisplay.h"
|
||||
#include "Display.h"
|
||||
|
||||
#include <array>
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace output
|
||||
namespace items
|
||||
{
|
||||
|
||||
class ISevenDigitDisplay : public IOutputDisplay
|
||||
class SevenDigitDisplay : public Display
|
||||
{
|
||||
public:
|
||||
virtual void write_content(std::array<char, 7> content) = 0;
|
||||
|
||||
Reference in New Issue
Block a user