plugify 1.0.0.0
Loading...
Searching...
No Matches
Functions
plugify::ModuleUtils Namespace Reference

Namespace containing utility functions of ModuleState enum. More...

Functions

constexpr std::string_view ToString (ModuleState state) noexcept
 Convert a ModuleState enum value to its string representation.
 
constexpr ModuleState FromString (std::string_view state) noexcept
 Convert a string representation to a ModuleState enum value.
 

Detailed Description

Namespace containing utility functions of ModuleState enum.

Function Documentation

◆ FromString()

constexpr ModuleState plugify::ModuleUtils::FromString ( std::string_view  state)
constexprnoexcept

Convert a string representation to a ModuleState enum value.

Parameters
stateThe string representation of ModuleState.
Returns
The corresponding ModuleState enum value.

Definition at line 142 of file module.hpp.

◆ ToString()

constexpr std::string_view plugify::ModuleUtils::ToString ( ModuleState  state)
constexprnoexcept

Convert a ModuleState enum value to its string representation.

Parameters
stateThe ModuleState value to convert.
Returns
The string representation of the ModuleState.

Definition at line 128 of file module.hpp.