Roboid Control for C++
Loading...
Searching...
No Matches
Public Member Functions | List of all members
RoboidControl::IMessage Class Reference

Detailed Description

Root structure for all communcation messages.

#include <IMessage.h>

Inheritance diagram for RoboidControl::IMessage:
RoboidControl::BinaryMsg RoboidControl::DestroyMsg RoboidControl::InvestigateMsg RoboidControl::ModelUrlMsg RoboidControl::NameMsg RoboidControl::NetworkIdMsg RoboidControl::ParticipantMsg RoboidControl::PoseMsg RoboidControl::TextMsg RoboidControl::ThingMsg

Public Member Functions

virtual unsigned char Serialize (char *buffer)
 Serialize the message into a byte array for sending.
 

Member Function Documentation

◆ Serialize()

unsigned char RoboidControl::IMessage::Serialize ( char *  buffer)
virtual

Serialize the message into a byte array for sending.

Parameters
bufferThe buffer to serilize into
Returns
The length of the message in the buffer

Reimplemented in RoboidControl::BinaryMsg, RoboidControl::DestroyMsg, RoboidControl::InvestigateMsg, RoboidControl::ModelUrlMsg, RoboidControl::NameMsg, RoboidControl::NetworkIdMsg, RoboidControl::ParticipantMsg, RoboidControl::PoseMsg, RoboidControl::TextMsg, and RoboidControl::ThingMsg.