MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / readValue

Function readValue

source/mrviewerpy/MRPythonUiInteraction.cpp:92–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
103MR_ADD_PYTHON_FUNCTION( mrviewerpy, uiReadValueInt, readValue<std::int64_t>,

Callers

nothing calls this directly

Calls 1

expectedValueOrThrowFunction · 0.85

Tested by

no test coverage detected