X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FTypeInfo.hh;h=6ce73112c7c97f1165ef17043120d287a67a464e;hb=c505c034e5fdc932c02aa3dc3847a5551011d87e;hp=e5e6998de44a7d1c77159d9da8d013341b787f37;hpb=601d1f509f5bb24df167a4dd5a20da67a0af9af8;p=senf.git diff --git a/senf/Utils/TypeInfo.hh b/senf/Utils/TypeInfo.hh index e5e6998..6ce7311 100644 --- a/senf/Utils/TypeInfo.hh +++ b/senf/Utils/TypeInfo.hh @@ -37,15 +37,26 @@ namespace senf { /** \brief Try to return readable type for given type_info - This function will try to return a demangled type name for the - given type_info object. If the demangling fails, the possibly - mangled name (type->name()) will be returned. + This function will try to return a demangled type name for the given type_info object. If + the demangling fails, the possibly mangled name (type->name()) will be returned. \param[in] type type_info object \returns type name, possibly demangled */ std::string prettyName(std::type_info const & type); + /** \brief Try to return readable type name without namespace or template arguments + + This function will try to return a demangled type name for the given type_info object. If + the demangling fails, the possibly mangled name (type->name()) will be returned. The + namespace prefix and template arguments will be stripped. + + \param[in] type type_info object + \returns type name, possibly demangled and without namespace or template args + */ + + std::string prettyBaseName(std::type_info const & type); + } ///////////////////////////////hh.e////////////////////////////////////////