16 lines
No EOL
488 B
C++
16 lines
No EOL
488 B
C++
class Communicator
|
|
{
|
|
private:
|
|
char *messageBuffer;
|
|
__SIZE_TYPE__ bufferSize;
|
|
|
|
public:
|
|
Communicator(__SIZE_TYPE__ bufferSize);
|
|
virtual void sendMessage(int *values, __SIZE_TYPE__ numberOfValues);
|
|
virtual void sendMessage(char *message);
|
|
virtual char *receiveMessage();
|
|
char *getBuffer();
|
|
int getBufferSize();
|
|
void parseIDs(int *values, __SIZE_TYPE__ numberOfValues, char *out);
|
|
__SIZE_TYPE__ calculateMessageOutSize(__SIZE_TYPE__ numberOfValues);
|
|
}; |