32#ifndef DRAIN_ENUM_FLAGGER
33#define DRAIN_ENUM_FLAGGER
37#include <drain/Enum.h>
61 typedef typename F::value_t value_t;
62 typedef typename F::storage_t storage_t;
63 typedef typename F::dict_t dict_t;
64 typedef FlagResolver::ivalue_t ivalue_t;
84 template <
typename ... T>
138 this->set(flagger.value);
Flagger accepting values of enum type E.
Definition EnumFlagger.h:56
EnumFlagger(const storage_t &v)
Constructor with initial value.
Definition EnumFlagger.h:73
EnumFlagger()
Default constructor.
Definition EnumFlagger.h:68
EnumFlagger< F > & operator=(const EnumFlagger< F > &flagger)
Definition EnumFlagger.h:137
static ivalue_t getValueNEW(const std::string &key)
Returns the static dictionary created for this value_t .
Definition EnumFlagger.h:112
Definition DataSelector.cpp:1277
A container for a static dictionary of enumeration values.
Definition Enum.h:51
static E getValue(const E &value, bool lenient=true)
Convenience for object.set(...) like commands.
Definition Enum.h:96