refactored namespaces

This commit is contained in:
Jonas Zeunert
2018-11-21 00:14:13 +01:00
parent 6cd1b21162
commit ab6979ae63
20 changed files with 82 additions and 31 deletions

View File

@@ -0,0 +1,28 @@
//
// Created by rhetenor on 20.11.18.
//
#ifndef FLIPPR_DRIVER_IEIGHTDIGITDISPLAY_H
#define FLIPPR_DRIVER_IEIGHTDIGITDISPLAY_H
#include "IOutputDisplay.h"
#include <array>
namespace flippr_driver
{
namespace output
{
namespace items
{
class IEightDigitDisplay : public IOutputDisplay
{
public:
virtual void write_content(std::array<char, 8> content) = 0;
};
}
}
}
#endif //FLIPPR_DRIVER_IEIGHTDIGITDISPLAY_H

View File

@@ -0,0 +1,33 @@
/*
* ILamp.h
*
* Created on: Aug 7, 2018
* Author: rhetenor
*/
#ifndef _SRC_OUTPUT_ILAMP_H_
#define _SRC_OUTPUT_ILAMP_H_
namespace flippR_driver
{
namespace output
{
namespace items
{
class ILamp
{
public:
~ILamp()
{};
void activate();
void deactivate();
bool is_activated();
};
}
}
}
#endif

View File

@@ -0,0 +1,33 @@
/*
* IOutputDisplay.h
*
* Created on: Nov 20, 2018
* Author: johannes
*/
#ifndef SRC_OUTPUT_IOUTPUTDISPLAY_H_
#define SRC_OUTPUT_IOUTPUTDISPLAY_H_
namespace flippR_driver
{
namespace output
{
namespace items
{
class IDisplay
{
public:
virtual ~IDisplay()
{};
virtual void write_score(int score) = 0;
};
}
}
}
#endif /* SRC_OUTPUT_IOUTPUTDISPLAY_H_ */

View File

@@ -0,0 +1,28 @@
//
// Created by rhetenor on 20.11.18.
//
#ifndef FLIPPR_DRIVER_ISEVENDIGITDISPLAY_H
#define FLIPPR_DRIVER_ISEVENDIGITDISPLAY_H
#include "IOutputDisplay.h"
#include <array>
namespace flippr_driver
{
namespace output
{
namespace items
{
class ISevenDigitDisplay : public IOutputDisplay
{
public:
virtual void write_content(std::array<char, 7> content) = 0;
};
}
}
}
#endif //FLIPPR_DRIVER_ISEVENDIGITDISPLAY_H

View File

@@ -0,0 +1,30 @@
/*
* ISolenoid.h
*
* Created on: Aug 7, 2018
* Author: rhetenor
*/
#ifndef _SRC_OUTPUT_ISOLENOID_H_
#define _SRC_OUTPUT_ISOLENOID_H_
namespace flippR_driver
{
namespace output
{
namespace items
{
class ISolenoid
{
public:
~ISolenoid()
{};
void trigger();
};
}
}
}
#endif

View File

@@ -0,0 +1,30 @@
/*
* ISound.h
*
* Created on: Aug 2, 2018
* Author: rhetenor
*/
#ifndef _SRC_OUTPUT_ISOUND_H_
#define _SRC_OUTPUT_ISOUND_H_
namespace flippR_driver
{
namespace output
{
namespace items
{
class ISound
{
public:
ISound();
virtual ~ISound();
virtual void play() = 0;
};
}
} /* namespace output */
}
#endif