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

Method OpenFile

IO/Parallel/vtkPDataSetReader.cxx:657–676  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

655
656//------------------------------------------------------------------------------
657istream* vtkPDataSetReader::OpenFile(const char* filename)
658{
659 vtksys::ifstream* file;
660
661 if (!filename || filename[0] == '\0')
662 {
663 vtkDebugMacro(<< "A FileName must be specified.");
664 return nullptr;
665 }
666
667 file = new vtksys::ifstream(filename);
668 if (!file || file->fail())
669 {
670 delete file;
671 vtkErrorMacro(<< "Initialize: Could not open file " << filename);
672 return nullptr;
673 }
674
675 return file;
676}
677
678//------------------------------------------------------------------------------
679int vtkPDataSetReader::RequestInformation(

Callers 2

RequestDataObjectMethod · 0.95
CanReadFileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected