Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Leander Schulten
Lichtsteuerung
Commits
cb851ea0
Commit
cb851ea0
authored
Apr 29, 2018
by
Leander Schulten
Browse files
Fix missing include and baseclass
parent
25314c48
Changes
2
Hide whitespace changes
Inline
Side-by-side
programms/consumer.hpp
View file @
cb851ea0
...
...
@@ -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
;
...
...
programms/types.h
View file @
cb851ea0
...
...
@@ -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
;}
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment