diff options
author | Matthias P. Braendli (think) <matthias@mpb.li> | 2013-11-08 14:43:19 +0100 |
---|---|---|
committer | Matthias P. Braendli (think) <matthias@mpb.li> | 2013-11-08 14:43:19 +0100 |
commit | c5306f81a9d3b87df7e16c852f2505ac913193ca (patch) | |
tree | 40716835305aa871cae5a5b3c805f0c673f47108 /src/MuxElements.h | |
parent | 573c7b63092618ecae86847d9d0a143801db0780 (diff) | |
download | dabmux-c5306f81a9d3b87df7e16c852f2505ac913193ca.tar.gz dabmux-c5306f81a9d3b87df7e16c852f2505ac913193ca.tar.bz2 dabmux-c5306f81a9d3b87df7e16c852f2505ac913193ca.zip |
make dabOutput more object-oriented
Diffstat (limited to 'src/MuxElements.h')
-rw-r--r-- | src/MuxElements.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/MuxElements.h b/src/MuxElements.h index a27f805..539d955 100644 --- a/src/MuxElements.h +++ b/src/MuxElements.h @@ -32,17 +32,23 @@ #include <functional> #include <algorithm> #include <stdint.h> -#include "dabOutput.h" +#include "dabOutput/dabOutput.h" #include "dabInput.h" #include "Eti.h" using namespace std; struct dabOutput { - const char* outputProto; - const char* outputName; - void* data; - dabOutputOperations operations; + dabOutput(const char* proto, const char* name) : + outputProto(proto), outputName(name), output(NULL) { } + + // outputs are specified with outputProto://outputName + // during config parsing + std::string outputProto; + std::string outputName; + + // later, the corresponding output is then created + DabOutput* output; }; |