Closed peterfpeterson closed 7 years ago
What about NXgetnextattra?
From: Pete Peterson notifications@github.com Sent: 6 Oct 2016 7:19 p.m. To: nexusformat/code Subject: [nexusformat/code] NXgetnextattr is deprecated without a replacement (#438)
v4.4 has deprecated NXgetnextattr which is currently the only way to generate a list of attribute names. If NXgetnextattr is removed, then there is no way to loop through all attributes on a group/data. Instead client code will have to guess all possible attributes and see if they exist by checking the return codes on NXgetattr. It looks like you could use (in HDF5) H5Aget_namehttps://support.hdfgroup.org/HDF5/doc/RM/RM_H5A.html#Annot-GetName to expose the names of the attributes for iteration.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/nexusformat/code/issues/438, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AA0ReLLG83GwxDOM2S4Hvg3v6vHzYatxks5qxS2YgaJpZM4KQMq0.
That works. It would be great if the deprecation message (from the compiler) suggested NXgetnextattra
.
v4.4 has deprecated
NXgetnextattr
which is currently the only way to generate a list of attribute names. IfNXgetnextattr
is removed, then there is no way to loop through all attributes on a group/data. Instead client code will have to guess all possible attributes and see if they exist by checking the return codes onNXgetattr
. It looks like you could use (in HDF5)H5Aget_name
to expose the names of the attributes for iteration.