factory
This commit is contained in:
34
FlippR-Driver/include/output/items/IItem.h
Normal file
34
FlippR-Driver/include/output/items/IItem.h
Normal 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
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user