#include <mrpt/utils/CObject.h>#include <mrpt/utils/CStream.h>#include <mrpt/utils/safe_pointers.h>#include <set>#include <list>

Go to the source code of this file.
Classes | |
| struct | mrpt::utils::CSerializablePtr |
| class | mrpt::utils::CSerializable |
| The virtual base class which provides a unified interface for all persistent objects in MRPT. More... | |
| struct | mrpt::utils::TTypeName< T > |
| A template to obtain the type of its argument as a string at compile time. More... | |
| struct | mrpt::utils::TTypeName< std::pair< T1, T2 > > |
Namespaces | |
| namespace | mrpt |
| This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries. | |
| namespace | mrpt::utils |
| Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL. | |
Macros | |
| #define | DEFINE_SERIALIZABLE(class_name) |
| This declaration must be inserted in all CSerializable classes definition, within the class declaration. | |
| #define | DEFINE_SERIALIZABLE_PRE_CUSTOM_LINKAGE(class_name, _LINKAGE_) |
| This declaration must be inserted in all CSerializable classes definition, before the class declaration. | |
| #define | DEFINE_SERIALIZABLE_PRE(class_name) |
| This declaration must be inserted in all CSerializable classes definition, before the class declaration. | |
| #define | DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_) |
| This declaration must be inserted in all CSerializable classes definition, before the class declaration. | |
| #define | DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE(class_name, base_name) |
| This declaration must be inserted in all CSerializable classes definition, before the class declaration. | |
| #define | IMPLEMENTS_SERIALIZABLE(class_name, base, NameSpace) |
| This must be inserted in all CSerializable classes implementation files: | |
| #define | DEFINE_VIRTUAL_SERIALIZABLE(class_name) DEFINE_VIRTUAL_MRPT_OBJECT(class_name) |
| This declaration must be inserted in virtual CSerializable classes definition: | |
| #define | IMPLEMENTS_VIRTUAL_SERIALIZABLE(class_name, base_class_name, NameSpace) |
| This must be inserted as implementation of some required members for virtual CSerializable classes: | |
Conversion of type to string at compile time | |
IMPORTANT: See also the implementation of Serialization for STL containers in mrpt/utils/stl_extensions.h | |
| #define | DECLARE_CUSTOM_TTYPENAME(_TYPE) namespace mrpt { namespace utils { MRPT_DECLARE_TTYPENAME(_TYPE) } } |
| Identical to MRPT_DECLARE_TTYPENAME but intended for user code. | |
| #define | MRPT_DECLARE_TTYPENAME(_TYPE) |
| #define | MRPT_DECLARE_TTYPENAME_PTR(_TYPE) |
| #define | MRPT_DECLARE_TTYPENAME_CONTAINER(_CONTAINER) |
| #define | MRPT_DECLARE_TTYPENAME_MAP_FOR_VECTOR(_CONT) template<> struct TTypeName <_CONT> : TTypeName<std::vector<_CONT::Scalar> > { }; |
| #define | MRPT_DECLARE_TTYPENAME_CONTAINER_ASSOC(_CONTAINER) |
Functions | |
Non-streaming serialization functions | |
| std::string BASE_IMPEXP | mrpt::utils::ObjectToString (const CSerializable *o) |
| Used to pass MRPT objects into a CORBA-like object (strings). | |
| void BASE_IMPEXP | mrpt::utils::StringToObject (const std::string &str, CSerializablePtr &obj) |
| Used to pass CORBA-like objects (strings) into a MRPT object. | |
| void BASE_IMPEXP | mrpt::utils::ObjectToOctetVector (const CSerializable *o, vector_byte &out_vector) |
| Converts (serializes) an MRPT object into an array of bytes. | |
| 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. | |
| 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. | |
| 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. | |
| #define DECLARE_CUSTOM_TTYPENAME | ( | _TYPE | ) | namespace mrpt { namespace utils { MRPT_DECLARE_TTYPENAME(_TYPE) } } |
Identical to MRPT_DECLARE_TTYPENAME but intended for user code.
MUST be placed at the GLOBAL namespace.
Definition at line 179 of file CSerializable.h.
| #define DEFINE_SERIALIZABLE | ( | class_name | ) |
This declaration must be inserted in all CSerializable classes definition, within the class declaration.
Definition at line 262 of file CSerializable.h.
| #define DEFINE_SERIALIZABLE_PRE | ( | class_name | ) |
This declaration must be inserted in all CSerializable classes definition, before the class declaration.
Definition at line 280 of file CSerializable.h.
| #define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE | ( | class_name, | |
| base_name | |||
| ) |
This declaration must be inserted in all CSerializable classes definition, before the class declaration.
Definition at line 293 of file CSerializable.h.
| #define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE_LINKAGE | ( | class_name, | |
| base_name, | |||
| _LINKAGE_ | |||
| ) |
This declaration must be inserted in all CSerializable classes definition, before the class declaration.
Definition at line 286 of file CSerializable.h.
| #define DEFINE_SERIALIZABLE_PRE_CUSTOM_LINKAGE | ( | class_name, | |
| _LINKAGE_ | |||
| ) |
This declaration must be inserted in all CSerializable classes definition, before the class declaration.
Definition at line 273 of file CSerializable.h.
| #define DEFINE_VIRTUAL_SERIALIZABLE | ( | class_name | ) | DEFINE_VIRTUAL_MRPT_OBJECT(class_name) |
This declaration must be inserted in virtual CSerializable classes definition:
Definition at line 306 of file CSerializable.h.
| #define IMPLEMENTS_SERIALIZABLE | ( | class_name, | |
| base, | |||
| NameSpace | |||
| ) |
This must be inserted in all CSerializable classes implementation files:
Definition at line 299 of file CSerializable.h.
| #define IMPLEMENTS_VIRTUAL_SERIALIZABLE | ( | class_name, | |
| base_class_name, | |||
| NameSpace | |||
| ) |
This must be inserted as implementation of some required members for virtual CSerializable classes:
Definition at line 312 of file CSerializable.h.
| #define MRPT_DECLARE_TTYPENAME | ( | _TYPE | ) |
Definition at line 182 of file CSerializable.h.
| #define MRPT_DECLARE_TTYPENAME_CONTAINER | ( | _CONTAINER | ) |
Definition at line 205 of file CSerializable.h.
| #define MRPT_DECLARE_TTYPENAME_CONTAINER_ASSOC | ( | _CONTAINER | ) |
Definition at line 238 of file CSerializable.h.
| #define MRPT_DECLARE_TTYPENAME_MAP_FOR_VECTOR | ( | _CONT | ) | template<> struct TTypeName <_CONT> : TTypeName<std::vector<_CONT::Scalar> > { }; |
Definition at line 219 of file CSerializable.h.
| #define MRPT_DECLARE_TTYPENAME_PTR | ( | _TYPE | ) |
Definition at line 186 of file CSerializable.h.
| Page generated by Doxygen 1.8.3 for MRPT 0.9.6 SVN: at Fri Feb 15 22:05:02 EST 2013 |