83 T* ptr =
reinterpret_cast<T*
>(&
content[0]);
uint32_t type
An identifier of the message type (only the least-sig byte is typically sent)
GLsizei GLsizei GLuint * obj
#define ASSERT_(f)
Defines an assertion mechanism.
GLsizei const GLchar ** string
void deserializeIntoNewObject(CSerializable::Ptr &obj)
A method that parse the data in the message into a new object of (a priori) unknown class...
A class that contain generic messages, that can be sent and received from a "CClientTCPSocket" object...
void getContentAsString(std::string &str)
Gets the contents of the message as a string.
void setContentFromString(const std::string &str)
Sets the contents of the message from a string.
The virtual base class which provides a unified interface for all persistent objects in MRPT...
void deserializeIntoExistingObject(CSerializable *obj)
A method that parse the data in the message into an existing object.
std::vector< uint8_t > content
The contents of the message (memory is automatically handled by the std::vector object) ...
unsigned __int32 uint32_t
void setContentFromStruct(const T &data)
Sets the contents of the message from an arbitary structure - This is intended for inter-thread comms...
GLsizei GLsizei GLenum GLenum const GLvoid * data
void serializeObject(const CSerializable *obj)
A method for serializing a MRPT's object into the content.
void getContentAsStruct(T &data) const
Gets the contents of the message as an arbitary structure - This is intended for inter-thread comms o...