Diana Software
QDemangle.hh
Go to the documentation of this file.
1 #ifndef _Q_DEMANGLE_HH_
2 #define _Q_DEMANGLE_HH_
3 
4 #include "QDiana.hh"
5 #include <string>
6 #include <typeinfo>
7 
9 
10 std::string CXADemangle(const char* typeid_name, int firstChar);
11 
12 template<typename C> std::string Demangle(const C& obj, int firstChar = 0)
13 {
14  const char* typeid_name = typeid(obj).name();
15  return CXADemangle(typeid_name,firstChar);
16 }
17 
19 
20 #endif
std::string Demangle(const C &obj, int firstChar=0)
Definition: QDemangle.hh:12
Q_BEGIN_NAMESPACE std::string CXADemangle(const char *typeid_name, int firstChar)
Definition: QDemangle.cc:6
#define Q_END_NAMESPACE
Definition: QDiana.hh:22
#define Q_BEGIN_NAMESPACE
Definition: QDiana.hh:20