functional class to read and write HDF5 data file