A template to obtain the type of its argument as a string at compile time. More...
#include <mrpt/utils/CSerializable.h>
Static Public Member Functions | |
| static std::string | get () |
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:
cout << TTypeName<double>::get() << endl; // "double" cout << TTypeName<CPose2D>::get() << endl; // "CPose2D" cout << TTypeName<mrpt::slam::COccupancyGridMap2D>::get() << endl; // "COccupancyGridMap2D"
Definition at line 150 of file CSerializable.h.
| static std::string mrpt::utils::TTypeName< T >::get | ( | ) | [inline, static] |
Definition at line 152 of file CSerializable.h.
Referenced by mrpt::utils::MRPTSTL_SERIALIZABLE_SEQ_CONTAINER(), and mrpt::utils::operator>>().
| Page generated by Doxygen 1.6.1 for MRPT 0.9.0 SVN: at Mon Jun 7 06:47:58 UTC 2010 |