------------------------------------------------------------------------------
| 655 | |
| 656 | //------------------------------------------------------------------------------ |
| 657 | istream* 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 | //------------------------------------------------------------------------------ |
| 679 | int vtkPDataSetReader::RequestInformation( |
no outgoing calls
no test coverage detected