MeVisLab Toolbox Reference
InputChannel.h
Go to the documentation of this file.
1// Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2// **InsertLicense** code
3
4#pragma once
5
6#include <asio/Executable.h>
7
8
9namespace asio {
10
28 template<typename DataType>
29 class InputChannel : public Executable<DataType>
30 {
31 public:
32
33 virtual void send(const DataType& value) = 0;
34
35 private:
36
37 void execute(const DataType& value) override
38 {
39 send(value);
40 }
41 };
42
43}
Abstract class template facilitating the definition of an input channel.
virtual void send(const DataType &value)=0