| 488 | } |
| 489 | |
| 490 | [[nodiscard]] std::optional<float> ParamValue::get_float() const { |
| 491 | if (std::get_if<float>(&_value)) { |
| 492 | return std::get<float>(_value); |
| 493 | } else { |
| 494 | LogErr() << "Not float type"; |
| 495 | return {}; |
| 496 | } |
| 497 | } |
| 498 | |
| 499 | [[nodiscard]] std::optional<std::string> ParamValue::get_custom() const { |
| 500 | if (std::get_if<std::string>(&_value)) { |
no test coverage detected