some fixes
This commit is contained in:
@@ -5,6 +5,8 @@
|
|||||||
#ifndef FLIPPR_DRIVER_IEIGHTDIGITDISPLAY_H
|
#ifndef FLIPPR_DRIVER_IEIGHTDIGITDISPLAY_H
|
||||||
#define FLIPPR_DRIVER_IEIGHTDIGITDISPLAY_H
|
#define FLIPPR_DRIVER_IEIGHTDIGITDISPLAY_H
|
||||||
|
|
||||||
|
#include "IOutputDisplay.h"
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
namespace flippr_driver
|
namespace flippr_driver
|
||||||
@@ -12,11 +14,10 @@ namespace flippr_driver
|
|||||||
namespace output
|
namespace output
|
||||||
{
|
{
|
||||||
|
|
||||||
class IEightDigitDisplay
|
class IEightDigitDisplay : public IOutputDisplay
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual void write_score(int score);
|
virtual void write_content(std::array<char, 8> content) = 0;
|
||||||
virtual void write_content(std::array<char, 8> content);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ public:
|
|||||||
virtual ~IDisplay();
|
virtual ~IDisplay();
|
||||||
|
|
||||||
virtual void write_score(int score) = 0;
|
virtual void write_score(int score) = 0;
|
||||||
virtual void write_content(std::array<char, DigitCount> content) = 0;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,8 @@
|
|||||||
#ifndef FLIPPR_DRIVER_ISEVENDIGITDISPLAY_H
|
#ifndef FLIPPR_DRIVER_ISEVENDIGITDISPLAY_H
|
||||||
#define FLIPPR_DRIVER_ISEVENDIGITDISPLAY_H
|
#define FLIPPR_DRIVER_ISEVENDIGITDISPLAY_H
|
||||||
|
|
||||||
|
#include "IOutputDisplay.h"
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
namespace flippr_driver
|
namespace flippr_driver
|
||||||
@@ -12,11 +14,10 @@ namespace flippr_driver
|
|||||||
namespace output
|
namespace output
|
||||||
{
|
{
|
||||||
|
|
||||||
class ISevenDigitDisplay
|
class ISevenDigitDisplay : public IOutputDisplay
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual void write_score(int score);
|
virtual void write_content(std::array<char, 7> content) = 0;
|
||||||
virtual void write_content(std::array<char, 7> content);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user