| 2624 | } |
| 2625 | |
| 2626 | int 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 | |
| 2645 | int vtkMultiBlockPLOT3DReader::CheckGeometryFile(FILE*& xyzFp) |
| 2646 | { |
no outgoing calls
no test coverage detected