4 #include <cgv/type/info/type_id.h>
5 #include <cgv/type/cond/is_standard_type.h>
8 #include <cgv/type/lib_begin.h>
20 template <
typename T,
bool is_std = true>
21 struct dispatch_type_name
24 static const char* get_name() {
return get_type_name(type_id<T>::get_id()); }
29 struct dispatch_type_name<T,false>
32 static const char* get_name() {
34 return type_name.c_str();
56 static const char*
get_name() {
return detail::dispatch_type_name<T, cond::is_standard_type<T>::value>
::get_name(); }
63 #include <cgv/config/lib_end.h>
std::string extract_type_name(const std::type_info &ti)
extract a type name from an type_info structure that does not contain the class, struct nor enum keyw...
Definition: type_name.cxx:9
static const char * get_name()
return special name for standard types or type name from RTTI cleaned from keywords for all other typ...
Definition: type_name.h:56
const char * get_type_name(TypeId tid)
function that returns the name of a type specified through TypeId
Definition: type_id.cxx:117
the cgv namespace
Definition: vr_calib.cxx:9
Definition: type_name.h:54