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

Method CheckFile

IO/Parallel/vtkMultiBlockPLOT3DReader.cxx:2626–2643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2624}
2625
2626int vtkMultiBlockPLOT3DReader::CheckFile(FILE*& fp, const char* fname)
2627{
2628 if (this->BinaryFile)
2629 {
2630 fp = vtksys::SystemTools::Fopen(fname, "rb");
2631 }
2632 else
2633 {
2634 fp = vtksys::SystemTools::Fopen(fname, "r");
2635 }
2636 if (fp == nullptr)
2637 {
2638 this->SetErrorCode(vtkErrorCode::FileNotFoundError);
2639 vtkErrorMacro(<< "File: " << fname << " not found.");
2640 return VTK_ERROR;
2641 }
2642 return VTK_OK;
2643}
2644
2645int vtkMultiBlockPLOT3DReader::CheckGeometryFile(FILE*& xyzFp)
2646{

Callers 5

GetTimeValueMethod · 0.95
ReadArraysMethod · 0.95
CheckGeometryFileMethod · 0.95
CheckFunctionFileMethod · 0.95
CanReadBinaryFileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected