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

Method CanReadFile

IO/HDF/vtkHDFReader.cxx:446–462  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

444
445//----------------------------------------------------------------------------
446int vtkHDFReader::CanReadFile(const char* name)
447{
448 // First make sure the file exists. This prevents an empty file
449 // from being created on older compilers.
450 vtksys::SystemTools::Stat_t fs;
451 if (vtksys::SystemTools::Stat(name, &fs) != 0)
452 {
453 vtkErrorMacro("File does not exist: " << name);
454 return 0;
455 }
456 if (!this->Impl->Open(name))
457 {
458 return 0;
459 }
460 this->Impl->Close();
461 return 1;
462}
463
464//----------------------------------------------------------------------------
465void vtkHDFReader::SelectionModifiedCallback(vtkObject*, unsigned long, void* clientdata, void*)

Callers 7

TestTemporalDataFunction · 0.45
TestImageDataFunction · 0.45
TestImageCellDataFunction · 0.45
TestUnstructuredGridFunction · 0.45
TestOverlappingAMRFunction · 0.45
TestWriteAndReadFunction · 0.45

Calls 2

OpenMethod · 0.45
CloseMethod · 0.45

Tested by 7

TestTemporalDataFunction · 0.36
TestImageDataFunction · 0.36
TestImageCellDataFunction · 0.36
TestUnstructuredGridFunction · 0.36
TestOverlappingAMRFunction · 0.36
TestWriteAndReadFunction · 0.36