class ov::EnumNames

Overview

Uses a pairings defined by EnumTypes::get() to convert between strings and enum values. More…

#include <enum_names.hpp>

template <typename EnumType>
class EnumNames
{
public:
    // methods

    static EnumType as_enum(const std::string& name);
    static const std::string& as_string(EnumType e);
};

Detailed Documentation

Uses a pairings defined by EnumTypes::get() to convert between strings and enum values.

Methods

static EnumType as_enum(const std::string& name)

Converts strings to enum values.

static const std::string& as_string(EnumType e)

Converts enum values to strings.