Functions | |
| template<typename T> | |
| const char * | toString () |
| template<typename T> | |
| const char * | toString (const T *) |
To use, simply do the following:
TypeConverter::toString<int>(); // returns "int" DataElement *pElement; TypeConverter::toString(pElement); // returns "DataElement" TypeConverter::toString<std::vector<int> >(); // returns "vector<int>" TypeConverter::toString<std::vector<DataElement*> >(); // return "vector<DataElement>"
| const char* TypeConverter::toString | ( | const T * | ) |
This function is exactly like the one above it, but may be more convenient where there is already an instance of the type desired.
Definition at line 48 of file TypeConverter.h.
| const char* TypeConverter::toString | ( | ) |
Generic form of type conversion.
This function is explicitly specialized to return type names for those listed in Supported TypeConverter Types