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

Method GetSubfileNonNullPart

IO/HDF/vtkHDFWriterImplementation.cxx:1455–1475  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1453
1454//------------------------------------------------------------------------------
1455vtkHDF::ScopedH5GHandle vtkHDFWriter::Implementation::GetSubfileNonNullPart(
1456 const std::string& blockPath, int& type)
1457{
1458 for (auto& fileRoot : this->Subfiles)
1459 {
1460 vtkHDF::ScopedH5GHandle blockG = this->OpenExistingGroup(fileRoot, blockPath.c_str());
1461 if (blockG == H5I_INVALID_HID)
1462 {
1463 vtkWarningWithObjectMacro(
1464 this->Writer, "Could not find group " << blockPath << " in subfile " << blockG);
1465 }
1466
1467 if (H5Aexists(blockG, "Type") >= 0 && vtkHDFUtilities::ReadDataSetType(blockG, type))
1468 {
1469 return blockG;
1470 }
1471 }
1472
1473 // Not found
1474 return H5I_INVALID_HID;
1475}
1476
1477//------------------------------------------------------------------------------
1478vtkHDFWriter::Implementation::IndexingMode vtkHDFWriter::Implementation::GetDatasetIndexationMode(

Callers 1

Calls 3

OpenExistingGroupMethod · 0.95
H5AexistsFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected