enough for today

This commit is contained in:
Jonas Zeunert
2018-12-11 00:03:48 +01:00
parent 6367e79898
commit b0d649018e
9 changed files with 29 additions and 31 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

@@ -24,7 +24,7 @@ namespace items
class Solenoid : public Item, public ISolenoid
{
public:
Solenoid(std::shared_ptr<IOutputGPIOInterface> output_gpio_interface, u_int8_t address, std::string name, std::chrono::milliseconds deactivation_time);
Solenoid(std::shared_ptr<IOutputGPIOInterface> output_gpio_interface, u_int8_t address, std::string name, std::chrono::milliseconds deactivation_time);
~Solenoid() override = default;
void trigger() override;