1#include <Core/Containers/VariableSet.hpp>
2#include <Core/Containers/VariableSetEnumManagement.hpp>
3#include <Core/Utils/Log.hpp>
12namespace VariableSetEnumManagement {
15 auto converterFunc = vs.existsVariable<
17 if ( converterFunc ) { ( *converterFunc )->second( vs, name, value ); }
19 LOG( Core::Utils::logWARNING ) <<
"VariableSet: try to set enum value from string without "
20 "converter, ignored. Variable name: ["
21 << name <<
"], value: [" << value <<
"]";
25void setEnumVariable( VariableSet& vs,
const std::string& name,
const char* value ) {
hepler function to manage enum as underlying types in VariableSet