Go to the documentation of this file.
17 namespace serialization
97 T* ptr =
reinterpret_cast<T*
>(&
content[0]);
void setContentFromStruct(const T &data)
Sets the contents of the message from an arbitary structure - This is intended for inter-thread comms...
std::shared_ptr< CSerializable > Ptr
void * getContentAsPointer() const
Gets the contents of the message as a "void*" (the pointer itself is the message) - This is intended ...
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...
uint32_t type
An identifier of the message type (only the least-sig byte is typically sent)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define ASSERT_(f)
Defines an assertion mechanism.
A class that contain generic messages, that can be sent and received from a "CClientTCPSocket" object...
void deserializeIntoNewObject(CSerializable::Ptr &obj)
A method that parse the data in the message into a new object of (a priori) unknown class.
GLsizei GLsizei GLenum GLenum const GLvoid * data
std::vector< uint8_t > content
The contents of the message (memory is automatically handled by the std::vector object)
The virtual base class which provides a unified interface for all persistent objects in MRPT.
void getContentAsString(std::string &str)
Gets the contents of the message as a string.
void setContentFromPointer(void *ptr)
Sets the contents of the message from a "void*" (the pointer itself becomes the message) - This is in...
void setContentFromString(const std::string &str)
Sets the contents of the message from a string.
GLsizei const GLchar ** string
void deserializeIntoExistingObject(CSerializable *obj)
A method that parse the data in the message into an existing object.
unsigned __int32 uint32_t
void serializeObject(const CSerializable *obj)
A method for serializing a MRPT's object into the content.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |