A template to obtain the type of its argument as a string at compile time.
It works with all classes derived from CSerializable, plus many specializations for the plain data types (bool, double, uint8_t, etc...) For example:
Users can extend this for custom structs/classes with the macro DECLARE_CUSTOM_TTYPENAME:
The following types are NOT ALLOWED since they have platform-dependant sizes:
Definition at line 169 of file CSerializable.h.
#include <mrpt/utils/CSerializable.h>
Static Public Member Functions | |
| static std::string | get () |
|
inlinestatic |
Definition at line 171 of file CSerializable.h.
Referenced by mrpt::utils::MRPTSTL_SERIALIZABLE_SEQ_CONTAINER(), and mrpt::utils::operator>>().
| Page generated by Doxygen 1.8.3 for MRPT 0.9.6 SVN: at Fri Feb 15 22:05:02 EST 2013 |