This commit is contained in:
Jonas Zeunert
2018-12-10 23:04:44 +01:00
parent 5e0687f7c6
commit d65d87b8f1
15 changed files with 101 additions and 47 deletions

View File

@@ -0,0 +1,34 @@
/*
* ICabinetItem.h
*
* Created on: Aug 7, 2018
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert
*/
#ifndef _SRC_OUTPUT_ICABINETITEM_H_
#define _SRC_OUTPUT_ICABINETITEM_H_
#include <cstdint>
#include <string>
namespace flippR_driver
{
namespace output
{
namespace items
{
class IItem
{
public:
virtual ~IItem() = default;
virtual uint8_t get_address() = 0;
virtual std::string get_name() = 0;
};
}
}
}
#endif

View File

@@ -8,6 +8,7 @@
#ifndef _SRC_OUTPUT_ILAMP_H_
#define _SRC_OUTPUT_ILAMP_H_
#include "IItem.h"
namespace flippR_driver
{
namespace output
@@ -15,7 +16,7 @@ namespace output
namespace items
{
class ILamp
class ILamp : public IItem
{
public:
~ILamp()

View File

@@ -8,6 +8,8 @@
#ifndef _SRC_OUTPUT_ISOLENOID_H_
#define _SRC_OUTPUT_ISOLENOID_H_
#include "IItem.h"
namespace flippR_driver
{
namespace output
@@ -15,7 +17,7 @@ namespace output
namespace items
{
class ISolenoid
class ISolenoid : public IItem
{
public:
~ISolenoid()

View File

@@ -8,6 +8,8 @@
#ifndef _SRC_OUTPUT_ISOUND_H_
#define _SRC_OUTPUT_ISOUND_H_
#include "IItem.h"
namespace flippR_driver
{
namespace output
@@ -15,7 +17,7 @@ namespace output
namespace items
{
class ISound
class ISound : public IItem
{
public:
ISound();