X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FTypeInfo.hh;h=90d1befe2f283503d8d0f4184e42e69169ff2f23;hb=e9816d699770dea77c989c97ef53bf2266ce7b6b;hp=e5e6998de44a7d1c77159d9da8d013341b787f37;hpb=601d1f509f5bb24df167a4dd5a20da67a0af9af8;p=senf.git diff --git a/senf/Utils/TypeInfo.hh b/senf/Utils/TypeInfo.hh index e5e6998..90d1bef 100644 --- a/senf/Utils/TypeInfo.hh +++ b/senf/Utils/TypeInfo.hh @@ -31,24 +31,35 @@ #include //#include "TypeInfo.mpp" -///////////////////////////////hh.p//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// 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//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// //#include "TypeInfo.cci" //#include "TypeInfo.ct" //#include "TypeInfo.cti"