Commit cb851ea0 authored by Leander Schulten's avatar Leander Schulten
Browse files

Fix missing include and baseclass

parent 25314c48
......@@ -2,6 +2,7 @@
#define COMSUMER_H
#include "types.h"
#include <cstring>
namespace Modules{
......@@ -9,7 +10,7 @@ namespace Modules{
* @brief The Consumer class represents a Consumer like a driver for dmx or leds
* Treiber erben von dieser Klasse und zeigen die Entsprechenden Daten an.
*/
class Consumer:public InputDataConsumer{
class Consumer:public PropertyBase, public InputDataConsumer{
public:
Consumer(const ValueType inputDataType):InputDataConsumer(inputDataType){}
virtual void setInputLength(unsigned int)=0;
......
......@@ -4,6 +4,7 @@
#include "property.hpp"
#include <vector>
#include <stdexcept>
#include <assert.h>
namespace Modules {
......@@ -64,9 +65,9 @@ namespace Modules {
class PropertyBase{
protected:
std::vector<Property> properties;
std::vector<Property*> properties;
public:
const std::vector<Property>& getProperties()const{return properties;}
const std::vector<Property*>& getProperties()const{return properties;}
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment