plugify  1.0.0.0
Functions
plugify::PluginUtils Namespace Reference

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

Functions

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

Detailed Description

Namespace containing utility functions of PluginState enum.

Function Documentation

◆ FromString()

constexpr PluginState plugify::PluginUtils::FromString ( std::string_view  state)
constexpr

Convert a string representation to a PluginState enum value.

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

Definition at line 153 of file plugin.hpp.

◆ ToString()

constexpr std::string_view plugify::PluginUtils::ToString ( PluginState  state)
constexpr

Convert a PluginState enum value to its string representation.

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

Definition at line 137 of file plugin.hpp.