Fix missing entry in vtables
This commit is contained in:
parent
0326e1e36e
commit
259e74a658
2 changed files with 17 additions and 5 deletions
|
@ -16,12 +16,12 @@ int Communicator::getBufferSize()
|
||||||
return this->bufferSize;
|
return this->bufferSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
int Communicator::calculateMessageOutSize(int numberOfValues)
|
__SIZE_TYPE__ Communicator::calculateMessageOutSize(__SIZE_TYPE__ numberOfValues)
|
||||||
{
|
{
|
||||||
return numberOfValues + (numberOfValues - 1) + 1;
|
return numberOfValues + (numberOfValues - 1) + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Communicator::parseIDs(int *values, int numberOfValues, char *output)
|
void Communicator::parseIDs(int *values, __SIZE_TYPE__ numberOfValues, char *output)
|
||||||
{
|
{
|
||||||
__SIZE_TYPE__ outputSize = calculateMessageOutSize(numberOfValues);
|
__SIZE_TYPE__ outputSize = calculateMessageOutSize(numberOfValues);
|
||||||
__SIZE_TYPE__ outputCharPointer = 0;
|
__SIZE_TYPE__ outputCharPointer = 0;
|
||||||
|
@ -33,4 +33,16 @@ void Communicator::parseIDs(int *values, int numberOfValues, char *output)
|
||||||
if (outputCharPointer < outputSize - 1)
|
if (outputCharPointer < outputSize - 1)
|
||||||
output[outputCharPointer++] = ',';
|
output[outputCharPointer++] = ',';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void Communicator::sendMessage(int *values, __SIZE_TYPE__ numberOfValues)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void Communicator::sendMessage(char *message)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
char *Communicator::receiveMessage()
|
||||||
|
{
|
||||||
|
return "";
|
||||||
}
|
}
|
|
@ -6,11 +6,11 @@ private:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Communicator(__SIZE_TYPE__ bufferSize);
|
Communicator(__SIZE_TYPE__ bufferSize);
|
||||||
virtual void sendMessage(int *values, int numberOfValues);
|
virtual void sendMessage(int *values, __SIZE_TYPE__ numberOfValues);
|
||||||
virtual void sendMessage(char *message);
|
virtual void sendMessage(char *message);
|
||||||
virtual char *receiveMessage();
|
virtual char *receiveMessage();
|
||||||
char *getBuffer();
|
char *getBuffer();
|
||||||
int getBufferSize();
|
int getBufferSize();
|
||||||
void parseIDs(int *values, int numberOfValues, char *out);
|
void parseIDs(int *values, __SIZE_TYPE__ numberOfValues, char *out);
|
||||||
int calculateMessageOutSize(int numberOfValues);
|
__SIZE_TYPE__ calculateMessageOutSize(__SIZE_TYPE__ numberOfValues);
|
||||||
};
|
};
|
Reference in a new issue