HDF5 C++ API

Anyone out there using the C++ API?

I'm confused why the class Attribute derives from H5Object. H5Object
offers operations for creating and accessing attributes, which make sense
for DataSet and Group, but not Attribute, since attributes cannot have
attributes.

Maybe I just don't yet understand how the API works. I've studied the
online Doxygen reference manual
(http://hdf.ncsa.uiuc.edu/HDF5/doc/cpplus_RM/index.html) and the user
notes (http://hdf.ncsa.uiuc.edu/HDF5/doc/cpplus/CppUserNotes.pdf). Is
there another document that is more helpful?

Thanks.

Curtis,

This is a bug in the HDF5 C++ library. We entered a bug report into our database and we will try to address it in the future releases. We will also update documentation.

Regards,

Elena

···

At 3:01 PM -0800 2/26/08, Curtis S Gehman wrote:

Anyone out there using the C++ API?

I'm confused why the class Attribute derives from H5Object. H5Object offers operations for creating and accessing attributes, which make sense for DataSet and Group, but not Attribute, since attributes cannot have attributes.

Maybe I just don't yet understand how the API works. I've studied the online Doxygen reference manual (http://hdf.ncsa.uiuc.edu/HDF5/doc/cpplus_RM/index.html) and the user notes (http://hdf.ncsa.uiuc.edu/HDF5/doc/cpplus/CppUserNotes.pdf). Is there another document that is more helpful?

Thanks.

--

------------------------------------------------------------
Elena Pourmal
The HDF Group
1901 So First ST.
Suite C-2
Champaign, IL 61820

epourmal@hdfgroup.org
(217)333-0238 (office)
(217)333-9049 (fax)
------------------------------------------------------------

Hello HDF members,

Maybe, am wrong . but my results with HDF5 C++ API of comparing
DataSet.write/Attribute.write shows me that

<a.> Create a DataSet, Open the same dataset again, and write to the
dataset - Open the file and u see that dataset values are 10,20 - which
is what you expect !! - GOOD results.
<b.> Create an Attribute, Open the same attribute again, and write to the
attribute - Open the file and u see that dataset values are 0, 0 , when
you ideally expect 10,20. - WRONG results.

sample code

···

-------------------
        int d1[2]={10,20};
        DataSet dset_temp = grp_1.openDataSet("dset_1"); //grp_1 is a
group object - rank=1, dimension=1
               dset_temp.write((void*) d1, PredType::NATIVE_INT); //works
good - writes to hdf file

        //DataSet dset_temp = f1
                Attribute attr_temp = dset_1.openAttribute("attr_1");
//dset_1 is a dataset object - rank=1, dimension=2
        attr_temp.write(PredType::NATIVE_INT,(void*) d1); //works bad -
does not write to hdf file

Thanks
Anish Anto

Albert,

Hello,

This is a bug in the HDF5 C++ library. We entered a bug report into our
database and we will try to address it in the future releases. We will also
update documentation.

Is this bug report publicly available somewhere?

Our bugs database is not publicly available at this point.

I'd be very interested to know how you are planning to rearrange the
class hierarchy to deal with this issue.

Great! We will keep you in a loop.

Elena

···

At 11:44 PM +0200 3/9/08, Albert Strasheim wrote:

On Wed, 27 Feb 2008, Elena Pourmal wrote:

Regards,

Albert

--

------------------------------------------------------------
Elena Pourmal
The HDF Group
1901 So First ST.
Suite C-2
Champaign, IL 61820

epourmal@hdfgroup.org
(217)333-0238 (office)
(217)333-9049 (fax)
------------------------------------------------------------

----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.

Hello,

···

At 11:44 PM +0200 3/9/08, Albert Strasheim wrote:

Hello,

On Wed, 27 Feb 2008, Elena Pourmal wrote:

This is a bug in the HDF5 C++ library. We entered a bug report into our
database and we will try to address it in the future releases. We will also
update documentation.

Is this bug report publicly available somewhere?

Our bugs database is not publicly available at this point.

I'd be very interested to know how you are planning to rearrange the
class hierarchy to deal with this issue.

Great! We will keep you in a loop.

I was wondering if anybody has given any thought to this issue yet? Any feedback would be appreciated.

The reason I'm asking is that I'm working on a new experimental wrapper for HDF5 in Java that is closely modelled on the C++ API.

Regards,

Albert

----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.