Go to the documentation of this file.
23 class CSerializable;
struct CSerializablePtr;
61 void deserializeIntoNewObject( CSerializablePtr &obj );
66 void setContentFromString(
const std::string &str );
71 void getContentAsString( std::string &str );
76 void setContentFromPointer(
void * ptr );
81 void * getContentAsPointer()
const;
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] );
std::vector< unsigned char > content
The contents of the message (memory is automatically handled by the std::vector object)
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.
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 setContentFromStruct(const T &data)
Sets the contents of the message from an arbitary structure - This is intended for inter-thread comms...
Page generated by Doxygen 1.8.16 for MRPT 1.4.0 SVN: at Mon Oct 14 23:11:08 UTC 2019 | | |