#include "Stream.h" class StreamCommunicator { protected: Stream &stream; char *messageBuffer; __SIZE_TYPE__ bufferSize; __SIZE_TYPE__ calculateMessageOutSize(__SIZE_TYPE__ numberOfValues); void parseIDs(const int values[], __SIZE_TYPE__ numberOfValues, char *out); public: StreamCommunicator(Stream &s_out, __SIZE_TYPE__ bufferSize); void sendMessage(int *values, __SIZE_TYPE__ numberOfValues); void sendMessage(const char message[]); char *receiveMessage(); char *getBuffer(); int getBufferSize(); Stream *getStream(); };