template<>
Corrade::Utility::ConfigurationValue<Magnum::MeshPrimitive> struct

Configuration value parser and writer.

Public static functions

static auto toString(Magnum::MeshPrimitive value, ConfigurationValueFlags) -> Containers::String
Writes enum value as string.
static auto fromString(Containers::StringView stringValue, ConfigurationValueFlags) -> Magnum::MeshPrimitive
Reads enum value as string.

Function documentation

template<>
static Containers::String Corrade::Utility::ConfigurationValue<Magnum::MeshPrimitive>::toString(Magnum::MeshPrimitive value, ConfigurationValueFlags)

Writes enum value as string.

If the value is invalid, returns empty string.

template<>
static Magnum::MeshPrimitive Corrade::Utility::ConfigurationValue<Magnum::MeshPrimitive>::fromString(Containers::StringView stringValue, ConfigurationValueFlags)

Reads enum value as string.

If the value is invalid, returns a zero (invalid) primitive.