working on item rewrite
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#ifndef FLIPPR_DRIVER_OUTPUT_ITEMS_DISPLAY_H_
|
||||
#define FLIPPR_DRIVER_OUTPUT_ITEMS_DISPLAY_H_
|
||||
|
||||
#include <iosfwd>
|
||||
#include <iosfwd> // todo wtf?
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
|
||||
32
FlippR-Driver/include/output/items/Item.h
Normal file
32
FlippR-Driver/include/output/items/Item.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 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 <string>
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace output
|
||||
{
|
||||
namespace items
|
||||
{
|
||||
|
||||
class Item
|
||||
{
|
||||
public:
|
||||
virtual ~Item() = default;
|
||||
|
||||
virtual std::string get_name() const = 0;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -8,6 +8,8 @@
|
||||
#ifndef _SRC_OUTPUT_ILAMP_H_
|
||||
#define _SRC_OUTPUT_ILAMP_H_
|
||||
|
||||
#include "Item.h"
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace output
|
||||
@@ -15,7 +17,7 @@ namespace output
|
||||
namespace items
|
||||
{
|
||||
|
||||
class Lamp
|
||||
class Lamp : public Item
|
||||
{
|
||||
public:
|
||||
virtual ~Lamp() = default;
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
#define _SRC_OUTPUT_ISOLENOID_H_
|
||||
|
||||
|
||||
#include "Item.h"
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace output
|
||||
@@ -16,7 +18,7 @@ namespace output
|
||||
namespace items
|
||||
{
|
||||
// todo get name? parent calss output_item?
|
||||
class Solenoid
|
||||
class Solenoid : public Item
|
||||
{
|
||||
public:
|
||||
virtual ~Solenoid() = default;
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
#ifndef _SRC_OUTPUT_ISOUND_H_
|
||||
#define _SRC_OUTPUT_ISOUND_H_
|
||||
|
||||
#include "Item.h"
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace output
|
||||
@@ -15,7 +17,7 @@ namespace output
|
||||
namespace items
|
||||
{
|
||||
|
||||
class Sound
|
||||
class Sound : public Item
|
||||
{
|
||||
public:
|
||||
virtual ~Sound() = default;
|
||||
|
||||
Reference in New Issue
Block a user