An easy interface to writing HDF files from C++