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

Method HasAttribute

IO/HDF/vtkHDFReaderImplementation.cxx:292–300  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

290
291//------------------------------------------------------------------------------
292bool vtkHDFReader::Implementation::HasAttribute(const char* groupName, const char* attributeName)
293{
294 vtkHDF::ScopedH5GHandle groupID = H5Gopen(this->File, groupName, H5P_DEFAULT);
295 if (groupID < 0)
296 {
297 return false;
298 }
299 return H5Aexists(groupID, attributeName) > 0;
300}
301
302//------------------------------------------------------------------------------
303bool vtkHDFReader::Implementation::HasDataset(const char* datasetName)

Callers 3

ReadRecursivelyMethod · 0.45

Calls 1

H5AexistsFunction · 0.85

Tested by

no test coverage detected