SRS-control 0.1.4
Loading...
Searching...
No Matches
srs::common::internal Namespace Reference

Functions

template<typename Enum>
constexpr auto get_enum_dashed_names ()
template<auto EnumVal>
constexpr auto get_enum_dashed_name ()
constexpr auto get_enum_dashed_name (auto EnumVal) -> std::string
template<typename Enum>
constexpr auto get_enum (std::string_view enum_name)
template<typename Enum>
constexpr auto get_enum_dash_map ()

Variables

constexpr auto enum_to_dash_converter
constexpr auto enum_from_dash_converter

Function Documentation

◆ get_enum()

template<typename Enum>
auto srs::common::internal::get_enum ( std::string_view enum_name)
constexpr

Definition at line 94 of file EnumConvertFunctions.hpp.

◆ get_enum_dash_map()

template<typename Enum>
auto srs::common::internal::get_enum_dash_map ( )
constexpr

Definition at line 102 of file EnumConvertFunctions.hpp.

◆ get_enum_dashed_name() [1/2]

template<auto EnumVal>
auto srs::common::internal::get_enum_dashed_name ( )
constexpr

Definition at line 73 of file EnumConvertFunctions.hpp.

◆ get_enum_dashed_name() [2/2]

auto srs::common::internal::get_enum_dashed_name ( auto EnumVal) ->std::string
constexpr

Definition at line 87 of file EnumConvertFunctions.hpp.

◆ get_enum_dashed_names()

template<typename Enum>
auto srs::common::internal::get_enum_dashed_names ( )
constexpr

Definition at line 35 of file EnumConvertFunctions.hpp.

Variable Documentation

◆ enum_from_dash_converter

auto srs::common::internal::enum_from_dash_converter
constexpr
Initial value:
= [](const auto char_val)
{
if (char_val == '-')
{
return '_';
}
return char_val;
}

Definition at line 25 of file EnumConvertFunctions.hpp.

◆ enum_to_dash_converter

auto srs::common::internal::enum_to_dash_converter
constexpr
Initial value:
= [](const auto char_val)
{
if (char_val == '_')
{
return '-';
}
return char_val;
}

Definition at line 16 of file EnumConvertFunctions.hpp.