diff --git a/src/Tool/Tool.cpp b/src/Tool/Tool.cpp new file mode 100644 index 0000000..4b97bad --- /dev/null +++ b/src/Tool/Tool.cpp @@ -0,0 +1,6 @@ +#include "Tool.h" +#include // demangle + +Tool::Tool(){ + m_tool_name = abi::__cxa_demangle(typeid(*this).name(), nullptr, nullptr, nullptr); +} diff --git a/src/Tool/Tool.h b/src/Tool/Tool.h index 14a02ad..9e05d50 100644 --- a/src/Tool/Tool.h +++ b/src/Tool/Tool.h @@ -37,6 +37,7 @@ class Tool{ private: + std::string m_tool_name;