changed everything to impl

This commit is contained in:
Jonas Zeunert
2018-12-14 03:14:50 +01:00
parent ff3376b9d7
commit 2b9981e521
40 changed files with 271 additions and 236 deletions

View File

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