CARMA C++
demangledDynamicTypeName.h
Go to the documentation of this file.
1 #ifndef CARMA_UTIL_DEMANGLED_DYNAMIC_TYPE_NAME
2 #define CARMA_UTIL_DEMANGLED_DYNAMIC_TYPE_NAME
3 
6 
7 #include <string>
8 #include <typeinfo>
9 
10 #include "carma/util/demangle.h"
11 
12 
13 namespace carma {
14 namespace util {
15 
19 template < typename T >
20 ::std::string
22  return demangleTypeName( typeid( t ) );
23 }
24 
25 } // namespace carma::util
26 } // namespace carma
27 
28 
29 #endif
30 
::std::string demangleTypeName(const char *mangledName)
Returns a human readable name for the type whose compiler mangled name is passed in.
::std::string demangledDynamicTypeName(T &t)
Returns a human readable name for the type of the passed in parameter.
Interface file for the demangling routines.