Commit 2036decf authored by Leander Schulten's avatar Leander Schulten
Browse files

Move to namespace

parent a0023fa3
#include "dmxconsumer.h"
DMXConsumer::DMXConsumer()
{
namespace Modules {
}
DMXConsumer::DMXConsumer()
{
void DMXConsumer::setInputSize(unsigned int size){
channel.resize(size,-1);
}
}
void DMXConsumer::start(){}
void DMXConsumer::setInputSize(unsigned int size){
channel.resize(size,-1);
}
void DMXConsumer::start(){}
void DMXConsumer::show(void * data){
brightness_t * b = static_cast<brightness_t*>(data);
for(auto i = channel.cbegin();i!=channel.cend();++i,++b){
if(*i>0){
//dmxData[*i] = *b;
//TODO;
void DMXConsumer::show(void * data){
brightness_t * b = static_cast<brightness_t*>(data);
for(auto i = channel.cbegin();i!=channel.cend();++i,++b){
if(*i>0){
//dmxData[*i] = *b;
//TODO;
}
}
}
}
......@@ -4,16 +4,19 @@
#include "consumer.h"
#include <vector>
class DMXConsumer : public Modules::Consumer
{
std::vector<short> channel;
public:
DMXConsumer();
virtual ValueType getInputValueType()override{return Brightness;}
virtual void setInputSize(unsigned int) override;
virtual void start()override;
virtual void show(void * data) override;
const std::vector<short> & getChannelAssoziation()const{return channel;}
};
namespace Modules {
class DMXConsumer : public Modules::Consumer
{
std::vector<short> channel;
public:
DMXConsumer();
virtual ValueType getInputValueType()override{return Brightness;}
virtual void setInputSize(unsigned int) override;
virtual void start()override;
virtual void show(void * data) override;
const std::vector<short> & getChannelAssoziatfion()const{return channel;}
};
}
#endif // DMXCONSUMER_H
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