#pragma once #include "Messages.h" namespace Passer { namespace Control { /// @brief A participant is device which can communicate with other participants 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;