fw4spl
|
typeid, string or object name demangler. More...
#include <Demangler.hpp>
Public Member Functions | |
FWCORE_API std::string | getLeafClassname () const |
Returns "Object" from "::some::long::namespace::Object". More... | |
FWCORE_API std::string | getClassname () const |
Returns "::some::long::namespace::Object" from "::some::long::namespace::Object". More... | |
Constructor/Destructor | |
FWCORE_API | Demangler (const std::type_info &t) |
Constructor from a typeinfo object. More... | |
FWCORE_API | Demangler (const std::string &s) |
Constructor from a std::string. More... | |
template<typename T > | |
Demangler (T &s) | |
Constructor from any type. More... | |
virtual FWCORE_API | ~Demangler () |
Destructor. | |
Protected Member Functions | |
std::string | demangle () const |
Process the name to demangle and return the same string whatever the OS is. More... | |
Protected Attributes | |
const std::string | m_name |
Store the name to demangle. | |
typeid, string or object name demangler.
Definition at line 23 of file Demangler.hpp.
fwCore::Demangler::Demangler | ( | const std::type_info & | t | ) |
Constructor from a typeinfo object.
t | Typeinfo to demangle |
Definition at line 26 of file Demangler.cpp.
fwCore::Demangler::Demangler | ( | const std::string & | s | ) |
Constructor from a std::string.
s | string to demangle |
Definition at line 33 of file Demangler.cpp.
|
inline |
Constructor from any type.
s | object which type has to be demangled |
Definition at line 50 of file Demangler.hpp.
|
protected |
Process the name to demangle and return the same string whatever the OS is.
Definition at line 67 of file Demangler.cpp.
References m_name.
Referenced by getClassname(), and getLeafClassname().
std::string fwCore::Demangler::getClassname | ( | ) | const |
Returns "::some::long::namespace::Object" from "::some::long::namespace::Object".
Definition at line 59 of file Demangler.cpp.
References demangle().
std::string fwCore::Demangler::getLeafClassname | ( | ) | const |
Returns "Object" from "::some::long::namespace::Object".
Definition at line 46 of file Demangler.cpp.
References demangle().