
git-subtree-dir: ControlCore git-subtree-mainline: 2b5f5a58ac608aca3aad452a87f6cb27f428cbde git-subtree-split: 0a57e6d99abadc3257c6b1fdf5880b993e0d0fcb
27 lines
635 B
C++
27 lines
635 B
C++
#pragma once
|
|
|
|
#include "Messages.h"
|
|
|
|
namespace Passer {
|
|
namespace Control {
|
|
|
|
class Participant {
|
|
public:
|
|
unsigned char buffer[1024];
|
|
|
|
virtual bool SendBuffer(unsigned char bufferSize);
|
|
virtual bool PublishBuffer(unsigned char bufferSize);
|
|
|
|
void ReceiveData(unsigned char bufferSize);
|
|
|
|
protected:
|
|
virtual void ProcessNetworkIdMsg(NetworkIdMsg msg);
|
|
virtual void ProcessInvestigateMsg(InvestigateMsg msg);
|
|
virtual void ProcessThingMsg(ThingMsg msg);
|
|
virtual void ProcessPoseMsg(PoseMsg msg);
|
|
virtual void ProcessCustomMsg(CustomMsg msg);
|
|
};
|
|
|
|
} // namespace Control
|
|
} // namespace Passer
|
|
using namespace Passer::Control; |