| 71 | |
| 72 | template <auto Idx, typename C> |
| 73 | void setup_output(avnd::field_reflection<Idx, C> refl) |
| 74 | { |
| 75 | if constexpr(requires { avnd::get_name<C>(); }) |
| 76 | { |
| 77 | class_def.def_property( |
| 78 | c_str(output_name(refl)), |
| 79 | [](const T& t) { return avnd::pfr::get<Idx>(t.outputs).value; }, |
| 80 | [](T& t, decltype(C::value) x) { avnd::pfr::get<Idx>(t.outputs).value = x; }); |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | template <auto Idx, typename M> |
| 85 | void setup_message(avnd::field_reflection<Idx, M>) |
nothing calls this directly
no test coverage detected