3 #include <SimoxUtility/meta/enum/adapt_enum.h>
5 #include "../Storage.h"
12 std::enable_if_t<meta::cfg::gui_definition_enabled_v<T>,
void>
15 std::string
const& name)
18 namespace hana = boost::hana;
19 static constexpr
auto accessors = hana::accessors<T>();
20 hana::for_each(accessors, [&](
auto & e)
24 if constexpr(!elem_det::no_remote_gui)
26 const auto varname = hana::to<char const*>(hana::first(e));
28 auto& elem = hana::second(e)(cfg);
40 simox::meta::enable_if_enum_adapted_t<T>
43 std::string
const& name)
46 cfg = simox::meta::enum_names<T>.from_name(getAndReturnValue<std::string>(
values, name));