
git-subtree-dir: ControlCore git-subtree-mainline: 2b5f5a58ac608aca3aad452a87f6cb27f428cbde git-subtree-split: 0a57e6d99abadc3257c6b1fdf5880b993e0d0fcb
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
#include "Participant.h"
|
|
|
|
bool Participant::SendBuffer(unsigned char bufferSize) { return false; }
|
|
|
|
bool Participant::PublishBuffer(unsigned char bufferSize) { return false; }
|
|
|
|
void Participant::ReceiveData(unsigned char bufferSize) {
|
|
unsigned char msgId = this->buffer[0];
|
|
switch (msgId) {
|
|
case NetworkIdMsg::id: {
|
|
// NetworkIdMsg msg = NetworkIdMsg::Receive(this->buffer, bufferSize);
|
|
NetworkIdMsg msg = NetworkIdMsg(this->buffer);
|
|
ProcessNetworkIdMsg(msg);
|
|
} break;
|
|
case InvestigateMsg::id: {
|
|
InvestigateMsg msg = InvestigateMsg(this->buffer);
|
|
ProcessInvestigateMsg(msg);
|
|
} break;
|
|
case ThingMsg::id: {
|
|
ThingMsg msg = ThingMsg(this->buffer);
|
|
ProcessThingMsg(msg);
|
|
} break;
|
|
case PoseMsg::id: {
|
|
PoseMsg msg = PoseMsg(this->buffer);
|
|
ProcessPoseMsg(msg);
|
|
} break;
|
|
case CustomMsg::id: {
|
|
CustomMsg msg = CustomMsg(this->buffer);
|
|
ProcessCustomMsg(msg);
|
|
} break;
|
|
};
|
|
}
|
|
|
|
void Participant::ProcessNetworkIdMsg(NetworkIdMsg msg) {}
|
|
|
|
void Participant::ProcessInvestigateMsg(InvestigateMsg msg) {}
|
|
|
|
void Participant::ProcessThingMsg(ThingMsg msg) {}
|
|
|
|
void Participant::ProcessCustomMsg(CustomMsg msg) {} |