templaaates

This commit is contained in:
Jonas Zeunert
2018-11-20 22:45:44 +01:00
parent e80b48805b
commit 39c2792520
4 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
//
// Created by rhetenor on 20.11.18.
//
#ifndef FLIPPR_DRIVER_IEIGHTDIGITDISPLAY_H
#define FLIPPR_DRIVER_IEIGHTDIGITDISPLAY_H
#include <array>
class IEightDigitDisplay
{
public:
virtual void write_score(int score);
virtual void write_content(std::array<char, 8> content);
};
#endif //FLIPPR_DRIVER_IEIGHTDIGITDISPLAY_H

View File

@@ -0,0 +1,16 @@
//
// Created by rhetenor on 20.11.18.
//
#ifndef FLIPPR_DRIVER_ISEVENDIGITDISPLAY_H
#define FLIPPR_DRIVER_ISEVENDIGITDISPLAY_H
#include <array>
class ISevenDigitDisplay
{
public:
virtual void write_score(int score);
virtual void write_content(std::array<char, 7> content);
};
#endif //FLIPPR_DRIVER_ISEVENDIGITDISPLAY_H