API Documentation
Static Public Member Functions | List of all members
nkAstraeus::OneChannelPackUtils Class Referencefinal

Offers tools to work with the ONE_CHANNEL_PACK enumeration. More...

Static Public Member Functions

static nkMemory::StringView enumToStringLower (ONE_CHANNEL_PACK value)
 
static ONE_CHANNEL_PACK stringLowerToEnum (nkMemory::StringView value)
 

Detailed Description

Offers tools to work with the ONE_CHANNEL_PACK enumeration.

Member Function Documentation

◆ enumToStringLower()

static nkMemory::StringView nkAstraeus::OneChannelPackUtils::enumToStringLower ( ONE_CHANNEL_PACK  value)
static

Translates an enumeration value into its lowercase string representation :

ValueOutput
ONE_CHANNEL_PACK::R"r"
ONE_CHANNEL_PACK::G"g"
ONE_CHANNEL_PACK::B"b"
ONE_CHANNEL_PACK::A"a"
Any other value"unknown"
Parameters
valueThe enumeration value to translate.
Returns
The enumeration translated as a string.

◆ stringLowerToEnum()

static ONE_CHANNEL_PACK nkAstraeus::OneChannelPackUtils::stringLowerToEnum ( nkMemory::StringView  value)
static

Translates a lowercase string into its enumeration value :

ValueOutput
"r"ONE_CHANNEL_PACK::R
"g"ONE_CHANNEL_PACK::G
"b"ONE_CHANNEL_PACK::B
"a" / Any other stringONE_CHANNEL_PACK::A
Parameters
valueThe string to translate
Returns
The string translated into an enumeration value.

The documentation for this class was generated from the following file: