MCPcopy Create free account
hub / github.com/Kitware/ParaView / convert_value

Function convert_value

Remoting/ServerManagerPython/vtkSIPythonSourceProxy.cxx:108–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106
107template <typename T, typename F>
108vtkSmartPyObject convert_value(const vtkClientServerStream& msg, int idx, int arg, F f)
109{
110 T cval;
111 if (!msg.GetArgument(idx, arg, &cval))
112 {
113 throw convert_error();
114 }
115 return vtkSmartPyObject(f(cval));
116}
117
118// Converts the argument index given by `arg`, from a `msg` at index `idx` using.
119// Handles both single valued arguments and arrays. For arrays, it creates a

Callers

nothing calls this directly

Calls 4

convert_errorClass · 0.85
GetArgumentMethod · 0.80
vtkSmartPyObjectClass · 0.50
fFunction · 0.50

Tested by

no test coverage detected