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

Method SetFileName

IO/NetCDF/vtkNetCDFCAMReader.cxx:242–262  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

240
241//------------------------------------------------------------------------------
242void vtkNetCDFCAMReader::SetFileName(const char* fileName)
243{
244 vtkDebugMacro(<< " setting FileName to " << (fileName ? fileName : "(null)"));
245 if (this->FileName == nullptr && fileName == nullptr)
246 {
247 return;
248 }
249 if (this->FileName && fileName && (!strcmp(this->FileName, fileName)))
250 {
251 return;
252 }
253 this->Internals->closePoints();
254 delete[] this->FileName;
255 this->FileName = nullptr;
256 if (fileName && *fileName)
257 {
258 this->FileName = new char[strlen(fileName) + 1];
259 strcpy(this->FileName, fileName);
260 }
261 this->Modified();
262}
263
264//------------------------------------------------------------------------------
265void vtkNetCDFCAMReader::SetConnectivityFileName(const char* fileName)

Callers 1

~vtkNetCDFCAMReaderMethod · 0.95

Calls 2

closePointsMethod · 0.80
ModifiedMethod · 0.45

Tested by

no test coverage detected