Retrieves human-readable names from C++ run-time type information.
This class is available only with debug-builds of ALib.
Module ALib Strings functor T_Append<std::type_info,TChar,TAllocator> in debug-compilations, which internally makes use of this type. This allows appending the result of keyword typeid
directly to AString instances.
Definition at line 36 of file dbgtypedemangler.hpp.
#include <dbgtypedemangler.hpp>
Public Method Index: | |
ALIB_API | DbgTypeDemangler (const std::type_info &typeInfo) |
ALIB_API | ~DbgTypeDemangler () |
Destructor. | |
ALIB_API const char * | Get () |
ALIB_API NAString & | GetShort (NAString &target) |
Protected Field Index: | |
bool | failed |
If true , demangling failed. | |
const char * | name |
The translated name. | |
|
protected |
If true
, demangling failed.
Definition at line 40 of file dbgtypedemangler.hpp.
|
protected |
The translated name.
Definition at line 39 of file dbgtypedemangler.hpp.
ALIB_API DbgTypeDemangler | ( | const std::type_info & | typeInfo | ) |
Constructor
typeInfo | The information struct on the C++ type. |
ALIB_API const char * Get | ( | ) |
Returns the demangled, human-readable name of the type which was provided in the constructor.
Removes all namespaces from the type receivable with Get, including those of its nested templates, and writes the result to target.
target | The target string to write to. |