// create an HDF5 file named 'test.h5' and use (i.e. open) it
HDFql::execute("create and use file test.h5");
// create a dataset named 'dset' of data type integer which stores value '10'
HDFql::execute("create dataset dset as int values(10)");
// create three groups named 'grp1', 'grp2' and 'grp3'
HDFql::execute("create group grp1, grp2, grp3");
// create a (soft) link named 'lnk' in groups 'grp1', 'grp2' and 'grp3' (all these links point to dataset 'dset')
HDFql::execute("create link grp1/lnk, grp2/lnk, grp3/lnk to /dset, /dset, /dset");
1条答案
按热度按时间qjp7pelc1#
如果您没有绑定到特定的API,您可能需要尝试HDFql,因为它可以极大地减轻用户对HDF5底层细节的关注。在C++中使用HDFql,您的问题可以通过以下方式解决: