| 38 | namespace |
| 39 | { |
| 40 | bool CanReadFile(vtkObject* that, const std::string& fname) |
| 41 | { |
| 42 | vtkNew<vtkFileResourceStream> file; |
| 43 | if (!file->Open(fname.c_str())) |
| 44 | { |
| 45 | vtkErrorWithObjectMacro(that, << "Unable to open file: " << fname); |
| 46 | return false; |
| 47 | } |
| 48 | return true; |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | //------------------------------------------------------------------------------ |
no test coverage detected