20 if constexpr(std::is_same_v<T, bool>) {
return Checkbox(name,
value); }
21 else if constexpr(std::is_same_v<T, std::string>) {
return StringInput(name,
value); }
22 else if constexpr(std::is_floating_point_v<T>) {
return NumberInput(name,
value); }
23 else if constexpr(mc_rtc::internal::is_integral_v<T>) {
return IntegerInput(name,
value); }
std::optional< Eigen::VectorXd > value
Definition: Observer.h:16
auto IntegerInput(const std::string &name, GetT get_fn, SetT set_fn)
Definition: IntegerInput.h:34
auto NumberInput(const std::string &name, GetT get_fn, SetT set_fn)
Definition: NumberInput.h:34
auto Input(const std::string &name, T &value)
Definition: Input.h:18
auto ArrayInput(const std::string &name, GetT get_fn, SetT set_fn)
Definition: ArrayInput.h:59
auto Checkbox(const std::string &name, GetT get_fn, Callback cb)
Definition: Checkbox.h:43
auto StringInput(const std::string &name, GetT get_fn, SetT set_fn)
Definition: StringInput.h:34