trade C for C++ API in HDF5