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

Method CanReadFile

IO/ADIOS2/vtkADIOS2CoreImageReader.cxx:165–179  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

163
164//------------------------------------------------------------------------------
165int vtkADIOS2CoreImageReader::CanReadFile(const std::string& name)
166{
167 if (!vtksys::SystemTools::FileExists(name))
168 {
169 return 0;
170 }
171 if (vtksys::SystemTools::StringEndsWith(name, ".bp") ||
172 vtksys::SystemTools::StringEndsWith(name, ".bp4") ||
173 vtksys::SystemTools::StringEndsWith(name, ".bp5") ||
174 vtksys::SystemTools::StringEndsWith(name, "md.idx"))
175 {
176 return 1;
177 }
178 return 0;
179}
180
181//------------------------------------------------------------------------------
182int vtkADIOS2CoreImageReader::CanReadFile(const char* fileName)

Calls 2

StringEndsWithFunction · 0.85
stringClass · 0.50