changed everything to impl
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user