| 90 | { |
| 91 | template <typename T> |
| 92 | Control::Value<T> readValue( const std::vector<std::string>& path ) |
| 93 | { |
| 94 | Control::Value<T> ret; |
| 95 | MR::CommandLoop::runCommandFromGUIThread( [&] |
| 96 | { |
| 97 | ret = MR::expectedValueOrThrow( Control::readValue<T>( path ) ); |
| 98 | } ); |
| 99 | return ret; |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | MR_ADD_PYTHON_FUNCTION( mrviewerpy, uiReadValueInt, readValue<std::int64_t>, |
nothing calls this directly
no test coverage detected