![]() |
Modules | |
Serialization functions for ZMQ (v3 or above) (in #include <mrpt/utils/serialization_zmq.h>) | |
Functions | |
std::string BASE_IMPEXP | mrpt::utils::ObjectToString (const CSerializable *o) |
Used to pass MRPT objects into a CORBA-like object (strings). More... | |
void BASE_IMPEXP | mrpt::utils::StringToObject (const std::string &str, CSerializablePtr &obj) |
Used to pass CORBA-like objects (strings) into a MRPT object. More... | |
void BASE_IMPEXP | mrpt::utils::ObjectToOctetVector (const CSerializable *o, vector_byte &out_vector) |
Converts (serializes) an MRPT object into an array of bytes. More... | |
void BASE_IMPEXP | mrpt::utils::OctetVectorToObject (const vector_byte &in_data, CSerializablePtr &obj) |
Converts back (de-serializes) a sequence of binary data into a MRPT object, without prior information about the object's class. More... | |
void BASE_IMPEXP | mrpt::utils::ObjectToRawString (const CSerializable *o, std::string &out_str) |
Converts (serializes) an MRPT object into an array of bytes within a std::string, without codifying to avoid NULL characters. More... | |
void BASE_IMPEXP | mrpt::utils::RawStringToObject (const std::string &in_str, CSerializablePtr &obj) |
Converts back (de-serializes) a sequence of binary data within a std::string into a MRPT object, without prior information about the object's class. More... | |
void BASE_IMPEXP mrpt::utils::ObjectToOctetVector | ( | const CSerializable * | o, |
vector_byte & | out_vector | ||
) |
Converts (serializes) an MRPT object into an array of bytes.
o | The object to be serialized. |
out_vector | The vector which at return will contain the data. Size will be set automatically. |
Referenced by mrpt::utils::CSerializable::writeToMatlab().
void BASE_IMPEXP mrpt::utils::ObjectToRawString | ( | const CSerializable * | o, |
std::string & | out_str | ||
) |
Converts (serializes) an MRPT object into an array of bytes within a std::string, without codifying to avoid NULL characters.
This is therefore more efficient than ObjectToString
o | The object to be serialized. |
out_vector | The string which at return will contain the data. Size will be set automatically. |
Referenced by mrpt::utils::CSerializable::writeToMatlab().
std::string BASE_IMPEXP mrpt::utils::ObjectToString | ( | const CSerializable * | o | ) |
Used to pass MRPT objects into a CORBA-like object (strings).
See doc about "Integration with BABEL".
o | The object to be serialized. |
Referenced by mrpt::utils::CSerializable::writeToMatlab().
void BASE_IMPEXP mrpt::utils::OctetVectorToObject | ( | const vector_byte & | in_data, |
CSerializablePtr & | obj | ||
) |
Converts back (de-serializes) a sequence of binary data into a MRPT object, without prior information about the object's class.
in_data | The serialized input data representing the object. |
obj | The newly created object will be stored in this smart pointer. |
None | On any internal exception, this function returns a NULL pointer. |
Referenced by mrpt::utils::CSerializable::writeToMatlab().
void BASE_IMPEXP mrpt::utils::RawStringToObject | ( | const std::string & | in_str, |
CSerializablePtr & | obj | ||
) |
Converts back (de-serializes) a sequence of binary data within a std::string into a MRPT object, without prior information about the object's class.
in_data | The serialized input data representing the object. |
obj | The newly created object will be stored in this smart pointer. |
None | On any internal exception, this function returns a NULL pointer. |
Referenced by mrpt::utils::CSerializable::writeToMatlab().
void BASE_IMPEXP mrpt::utils::StringToObject | ( | const std::string & | str, |
CSerializablePtr & | obj | ||
) |
Used to pass CORBA-like objects (strings) into a MRPT object.
str | An string generated with ObjectToString |
obj | A currently empty pointer, where a pointer to the newly created object will be stored. |
None | On any internal exception, this function returns NULL. |
Referenced by mrpt::utils::CSerializable::writeToMatlab().
Page generated by Doxygen 1.8.13 for MRPT 1.5.3 at Sun Nov 26 00:44:48 UTC 2017 |