* Move to `enum_utils` header * Add `enum_cast` helper * Rename to `enum_parse` * Add `ignore_reserved` flag * Enum name helper * Namespace * Convert usages * Simplify `enum_util::values ()` * Parsing * Enum casting * Tests * Naming consistency * Fix
22 lines
No EOL
478 B
C++
22 lines
No EOL
478 B
C++
#include <nano/lib/enum_util.hpp>
|
|
#include <nano/lib/stats_enums.hpp>
|
|
|
|
std::string_view nano::to_string (nano::stat::type type)
|
|
{
|
|
return nano::enum_util::name (type);
|
|
}
|
|
|
|
std::string_view nano::to_string (nano::stat::detail detail)
|
|
{
|
|
return nano::enum_util::name (detail);
|
|
}
|
|
|
|
std::string_view nano::to_string (nano::stat::dir dir)
|
|
{
|
|
return nano::enum_util::name (dir);
|
|
}
|
|
|
|
std::string_view nano::to_string (nano::stat::sample sample)
|
|
{
|
|
return nano::enum_util::name (sample);
|
|
} |