20 class CSerializable;
struct CSerializablePtr;
53 void deserializeIntoNewObject( CSerializablePtr &
obj );
58 void setContentFromString(
const std::string &str );
68 void setContentFromPointer(
void * ptr );
73 void * getContentAsPointer()
const;
81 content.resize(
sizeof(
data) );
82 T * ptr =
reinterpret_cast< T*
>( &content[0] );
94 data = *
reinterpret_cast< T*
>( &content[0] );
The virtual base class which provides a unified interface for all persistent objects in MRPT...
GLsizei GLsizei GLuint * obj
void getContentAsStruct(T &data) const
Gets the contents of the message as an arbitary structure - This is intended for inter-thread comms o...
void setContentFromStruct(const T &data)
Sets the contents of the message from an arbitary structure - This is intended for inter-thread comms...
GLsizei const GLchar ** string
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
std::vector< uint8_t > content
The contents of the message (memory is automatically handled by the std::vector object) ...
unsigned __int32 uint32_t
GLsizei GLsizei GLenum GLenum const GLvoid * data
A class that contain generic messages, that can be sent and received from a "CClientTCPSocket" object...
uint32_t type
An identifier of the message type (only the least-sig byte is typically sent)