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

Method OpenFileForDataRead

IO/Parallel/vtkMultiBlockPLOT3DReader.cxx:2602–2619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2600}
2601
2602int vtkMultiBlockPLOT3DReader::OpenFileForDataRead(void*& fp, const char* fname)
2603{
2604 if (this->BinaryFile)
2605 {
2606 fp = vtksys::SystemTools::Fopen(fname, "rb");
2607 }
2608 else
2609 {
2610 fp = vtksys::SystemTools::Fopen(fname, "r");
2611 }
2612 if (fp == nullptr)
2613 {
2614 this->SetErrorCode(vtkErrorCode::FileNotFoundError);
2615 vtkErrorMacro(<< "File: " << fname << " not found.");
2616 return VTK_ERROR;
2617 }
2618 return VTK_OK;
2619}
2620
2621void vtkMultiBlockPLOT3DReader::CloseFile(void* fp)
2622{

Callers 2

ReadMeshMethod · 0.95
ReadArraysMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected