2022-04-09 20:07:19 +02:00
|
|
|
#include "Stream.h"
|
2022-04-10 11:50:44 +02:00
|
|
|
#include "Communicator.h"
|
2022-04-09 20:07:19 +02:00
|
|
|
|
|
|
|
#ifndef _STREAM_COMMUNICATOR_INCLUDED_
|
|
|
|
#define _STREAM_COMMUNICATOR_INCLUDED_
|
|
|
|
|
2022-04-10 11:50:44 +02:00
|
|
|
class StreamCommunicator: public Communicator
|
2022-04-09 20:07:19 +02:00
|
|
|
{
|
|
|
|
protected:
|
|
|
|
Stream &stream;
|
|
|
|
|
|
|
|
public:
|
|
|
|
StreamCommunicator(Stream &s_out, __SIZE_TYPE__ bufferSize);
|
2022-04-10 11:50:44 +02:00
|
|
|
void sendMessage(int *values, __SIZE_TYPE__ numberOfValues) override;
|
|
|
|
void sendMessage(const char message[]) override;
|
|
|
|
char *receiveMessage() override;
|
2022-04-09 20:07:19 +02:00
|
|
|
};
|
|
|
|
#endif
|