Fix documentation build under maverick (doxygen 1.7.1)
[senf.git] / senf / Utils / TypeInfo.cc
index bed2876..a321163 100644 (file)
@@ -32,7 +32,7 @@
 
 //#include "TypeInfo.mpp"
 #define prefix_
-///////////////////////////////cc.p////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 
 prefix_ std::string senf::prettyName(std::type_info const & type)
 {
@@ -45,7 +45,17 @@ prefix_ std::string senf::prettyName(std::type_info const & type)
     return name;
 }
 
-///////////////////////////////cc.e////////////////////////////////////////
+prefix_ std::string senf::prettyBaseName(std::type_info const & type)
+{
+    std::string name (prettyName(type));
+    std::string::size_type e (name.find('<'));
+    if (e == std::string::npos) e = name.size();
+    std::string::size_type b (name.rfind(':', e));
+    if (b == std::string::npos) b = 0; else ++b;
+    return name.substr(b,e-b);
+}
+
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 #undef prefix_
 //#include "TypeInfo.mpp"