------------------------------------------------------------------------------
| 163 | |
| 164 | //------------------------------------------------------------------------------ |
| 165 | bool vtkPythonArchiver::Contains(const std::string& relativePath) |
| 166 | { |
| 167 | vtkPythonScopeGilEnsurer gilEnsurer; |
| 168 | const char* mname = "Contains"; |
| 169 | VTK_GET_METHOD(method, this->Object, mname, false) |
| 170 | |
| 171 | PyObject* vtkself = VTKToPython(this); |
| 172 | PyObject* pypath = PyUnicode_FromString(relativePath.c_str()); |
| 173 | vtkSmartPyObject args(PyTuple_Pack(2, vtkself, pypath)); |
| 174 | Py_DECREF(vtkself); |
| 175 | Py_DECREF(pypath); |
| 176 | |
| 177 | vtkSmartPyObject result(PyObject_Call(method, args, nullptr)); |
| 178 | |
| 179 | return (CheckResult(mname, result) != 0); |
| 180 | } |
| 181 | |
| 182 | //------------------------------------------------------------------------------ |
| 183 | void vtkPythonArchiver::PrintSelf(ostream& os, vtkIndent indent) |
nothing calls this directly
no test coverage detected