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

Method SetConnectivityFileName

IO/NetCDF/vtkNetCDFCAMReader.cxx:265–285  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

263
264//------------------------------------------------------------------------------
265void vtkNetCDFCAMReader::SetConnectivityFileName(const char* fileName)
266{
267 vtkDebugMacro(<< " setting ConnectivityFileName to " << (fileName ? fileName : "(null)"));
268 if (this->ConnectivityFileName == nullptr && fileName == nullptr)
269 {
270 return;
271 }
272 if (this->ConnectivityFileName && fileName && (!strcmp(this->ConnectivityFileName, fileName)))
273 {
274 return;
275 }
276 this->Internals->closeConnectivity();
277 delete[] this->ConnectivityFileName;
278 this->ConnectivityFileName = nullptr;
279 if (fileName && *fileName)
280 {
281 this->ConnectivityFileName = new char[strlen(fileName) + 1];
282 strcpy(this->ConnectivityFileName, fileName);
283 }
284 this->Modified();
285}
286
287//------------------------------------------------------------------------------
288int vtkNetCDFCAMReader::RequestInformation(vtkInformation* vtkNotUsed(reqInfo),

Callers 2

~vtkNetCDFCAMReaderMethod · 0.95
TestNetCDFCAMReaderFunction · 0.80

Calls 2

closeConnectivityMethod · 0.80
ModifiedMethod · 0.45

Tested by 1

TestNetCDFCAMReaderFunction · 0.64