Abstract base class for Message.
#include <nrg_message.h>
Public Member Functions | |
virtual uint16_t | getID () const =0 |
Returns the user-defined Message ID. | |
virtual size_t | writeToPacket (Packet &p) const =0 |
Writes this Message to the Packet p . | |
virtual size_t | readFromPacket (Packet &p)=0 |
Reads this Message from the Packet p . | |
virtual void | onReceive (uint32_t creation_ms)=0 |
Function called when the message has been received. | |
virtual MessageBase * | clone () const =0 |
Returns a copy of the derived class of this MessageBase. | |
virtual MessageBase * | move_clone ()=0 |
Moves the derived class into the returned MessageBase. | |
virtual | ~MessageBase () |
Standard Destructor. | |