Go to the documentation of this file.
24 std::stringstream auxStream;
25 auto arch = mrpt::serialization::archiveFrom<std::iostream>(auxStream);
28 arch.WriteObject(
obj);
31 const auto&
data = auxStream.str();
47 std::stringstream auxStream;
48 auto arch = mrpt::serialization::archiveFrom<std::iostream>(auxStream);
66 std::stringstream auxStream;
67 auto arch = mrpt::serialization::archiveFrom<std::iostream>(auxStream);
76 obj = arch.ReadObject();
108 void** ptrPtr =
reinterpret_cast<void**
>(&
content[0]);
120 return *
reinterpret_cast<void**
>(
const_cast<unsigned char*
>(&
content[0]));
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
#define ASSERT_(f)
Defines an assertion mechanism.
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.
void serializeObject(const CSerializable *obj)
A method for serializing a MRPT's object into the content.
void memcpy(void *dest, size_t destSize, const void *src, size_t copyCount) noexcept
An OS and compiler independent version of "memcpy".
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 | |