plugify  1.0.0.0
Functions
plugify::SeverityUtils Namespace Reference

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

Functions

constexpr std::string_view ToString (Severity severity) noexcept
 Convert a Severity enum value to its string representation. More...
 
constexpr Severity FromString (std::string_view severity) noexcept
 Convert a string representation to a Severity enum value. More...
 

Detailed Description

Namespace containing utility functions of Severity enum.

Function Documentation

◆ FromString()

constexpr Severity plugify::SeverityUtils::FromString ( std::string_view  severity)
constexprnoexcept

Convert a string representation to a Severity enum value.

Parameters
severityThe string representation of Severity.
Returns
The corresponding Severity enum value.

Definition at line 66 of file log.hpp.

◆ ToString()

constexpr std::string_view plugify::SeverityUtils::ToString ( Severity  severity)
constexprnoexcept

Convert a Severity enum value to its string representation.

Parameters
severityThe Severity value to convert.
Returns
The string representation of the Severity.

Definition at line 49 of file log.hpp.