MeVisLab Toolbox Reference
asio::CommunicationChannel< DataType > Class Template Reference

A communication channel template for the given data type. More...

#include <CommunicationChannel.h>

Inheritance diagram for asio::CommunicationChannel< DataType >:
asio::InputChannel< DataType > asio::ObservableType< Args > asio::ExecutableType< Args >

Additional Inherited Members

- Public Member Functions inherited from asio::InputChannel< DataType >
virtual void send (const DataType &value)=0
 

Detailed Description

template<typename DataType>
class asio::CommunicationChannel< DataType >

A communication channel template for the given data type.

This class implements the templated asio::InputChannel and asio::OutputChannel interfaces facilitating the creation of bidirectional channels

Synopsis:

class MyStringChannel : public asio::CommunicationChannel<std::string>
{
public:
void send(const std::string& string_to_send) override
{
// define what happens if something tries to send a string via your implementation
// this "something" might just have got a reference to asio::InputChannel<std::string>
}
// No need to implement something for asio::OutputChannel as its public interface contains the corresponding signal
}
A communication channel template for the given data type.
virtual void send(const DataType &value)=0

Definition at line 33 of file CommunicationChannel.h.


The documentation for this class was generated from the following file: