Go to the documentation of this file.
23 class CSerializable;
struct CSerializablePtr;
89 content.resize(
sizeof(data) );
90 T * ptr =
reinterpret_cast< T*
>( &content[0] );
101 ASSERT_(content.size() ==
sizeof(data) );
102 data = *
reinterpret_cast< T*
>( &content[0] );
void serializeObject(CSerializable *obj)
A method for serializing a MRPT's object into the content.
void * getContentAsPointer() const
Gets the contents of the message as a "void*" (the pointer itself is the message) - This is intended ...
std::vector< unsigned char > content
The contents of the message (memory is automatically handled by the std::vector object)
void setContentFromPointer(void *ptr)
Sets the contents of the message from a "void*" (the pointer itself becomes the message) - This is in...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
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.
void getContentAsString(std::string &str)
Gets the contents of the message as a string.
The virtual base class which provides a unified interface for all persistent objects in MRPT.
void getContentAsStruct(T &data) const
Gets the contents of the message as an arbitary structure - This is intended for inter-thread comms o...
void setContentFromString(const std::string &str)
Sets the contents of the message from a string.
void deserializeIntoExistingObject(CSerializable *obj)
A method that parse the data in the message into an existing object.
void setContentFromStruct(const T &data)
Sets the contents of the message from an arbitary structure - This is intended for inter-thread comms...
void deserializeIntoNewObject(CSerializablePtr &obj)
A method that parse the data in the message into a new object of (a priori) unknown class.
Page generated by Doxygen 1.8.20 for MRPT 1.4.0 SVN: at Thu Aug 27 02:40:23 UTC 2020 | | |