|
CppTrail
|
Template utility to map Level enums to string representations. More...
#include <def.h>
Public Types | |
| using | string_view_type = std::basic_string_view< char_t > |
| Maps to std::string_view on C++17+, or CppTrail's fallback view on older standards. | |
Static Public Member Functions | |
| static std::basic_string< char_t > | getName (Level nLevel) |
| Retrieves the level name as a basic_string. | |
| static std::basic_string_view< char_t > | getNameView (Level nLevel) noexcept |
| Retrieves a view of the level name. | |
Static Public Attributes | |
| static constexpr std::array< string_view_type, 9 > | NAMES |
| Static array of localized/encoded level names. | |
Template utility to map Level enums to string representations.
| char_t | The character type (char, char8_t, char16_t, char32_t). |
|
inlinestatic |
Retrieves the level name as a basic_string.
| nLevel | The log level. |
|
inlinestaticnoexcept |
Retrieves a view of the level name.
| nLevel | The log level. |
|
staticconstexpr |
Static array of localized/encoded level names.