MCPcopy Create free account
hub / github.com/Kitware/VTK / vtkRead

Function vtkRead

Utilities/PythonInterpreter/vtkPythonStdStreamCaptureHelper.h:174–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174static PyObject* vtkRead(PyObject* self, PyObject* args)
175{
176 (void)args;
177 if (!self || !PyObject_TypeCheck(self, &vtkPythonStdStreamCaptureHelperType))
178 {
179 return nullptr;
180 }
181
182 vtkPythonStdStreamCaptureHelper* wrapper =
183 reinterpret_cast<vtkPythonStdStreamCaptureHelper*>(self);
184
185 std::string ret;
186 if (wrapper)
187 {
188 ret = wrapper->Read();
189 }
190 return Py_BuildValue("s", ret.c_str());
191}
192
193static PyObject* vtkFlush(PyObject* self, PyObject* args)
194{

Callers

nothing calls this directly

Calls 2

ReadMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected