Wyatt
1.0.1
|
#include <IMessage.h>
Public Member Functions | |
IMessage (Hardware hardware) | |
virtual | ~IMessage () |
Hardware | getHardware () |
virtual std::string | serialize ()=0 |
Protected Attributes | |
Hardware | hardware |
Message interface. All messages are required to state the hardware they are sent to/come from. In addition, they must all serialize themselves into string format.
Definition at line 10 of file IMessage.h.
|
inline |
Constructor.
hardware | The hardware the message is destined to/coming from. |
Definition at line 17 of file IMessage.h.
|
inlinevirtual |
Destructor.
Definition at line 24 of file IMessage.h.
|
inline |
Returns the hardware associated with the message
Definition at line 30 of file IMessage.h.
|
pure virtual |
Serialize the message as a string. The hardware address is appended to the front of the string.
Implemented in EncoderMessage, MotorMessage, and MockIRRangeFinderSensorMessage.
|
protected |
Hardware associated with the message
Definition at line 45 of file IMessage.h.