MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Reflect Namespace Reference

Functions

std::string to_lowercase (std::string_view str)
 Convert string to lowercase.
 
std::string to_uppercase (std::string_view str)
 Convert string to uppercase.
 
template<typename EnumType >
std::string enum_to_lowercase_string (EnumType value) noexcept
 Universal enum to lowercase string converter using magic_enum.
 
template<typename EnumType >
constexpr std::string_view enum_to_string (EnumType value) noexcept
 Universal enum to string converter using magic_enum (original case)
 
template<typename EnumType >
std::optional< EnumType > string_to_enum_case_insensitive (std::string_view str) noexcept
 Universal case-insensitive string to enum converter using magic_enum.
 
template<typename EnumType >
constexpr std::optional< EnumType > string_to_enum (std::string_view str) noexcept
 Universal string to enum converter using magic_enum (exact case match)
 
template<typename EnumType >
std::vector< std::string > get_enum_names_lowercase () noexcept
 Get all enum values as lowercase strings.
 
template<typename EnumType >
constexpr auto get_enum_names () noexcept
 Get all enum values as strings (original case)
 
template<typename EnumType >
constexpr auto get_enum_values () noexcept
 Get all enum values.
 
template<typename EnumType >
bool is_valid_enum_string_case_insensitive (std::string_view str) noexcept
 Validate if string is a valid enum value (case-insensitive)
 
template<typename EnumType >
constexpr size_t enum_count () noexcept
 Get enum count.
 
template<typename EnumType >
EnumType string_to_enum_or_throw_case_insensitive (std::string_view str, std::string_view context="")
 Convert string to enum with exception on failure (case-insensitive)