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

Function CanReadFile

IO/Import/vtkOBJImporter.cxx:40–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38namespace
39{
40bool 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//------------------------------------------------------------------------------

Callers 1

ImportBeginMethod · 0.70

Calls 2

OpenMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected