33template <
class Create>
inline hid_t
createHdf5Object(hid_t kind, hid_t properties, Create create) {
34 const hid_t owned = properties == H5P_DEFAULT ? H5Pcreate(kind) : H5Pcopy(properties);
37 const hid_t result = H5Pset_obj_track_times(owned, 0) >= 0 ? create(owned) : -1;
56 hid_t links, hid_t creation, hid_t access) {
58 return H5Dcreate2(location, name, type, space, links, properties, access);
72inline hid_t
createHdf5Group(hid_t location,
const char* name, hid_t links, hid_t creation,
75 return H5Gcreate2(location, name, links, properties, access);
88inline hid_t
createHdf5File(
const char* path,
unsigned flags, hid_t creation, hid_t access) {
90 return H5Fcreate(path, flags, properties, access);
Definition Hdf5ObjectCreation.hpp:16
hid_t createHdf5Object(hid_t kind, hid_t properties, Create create)
Create an HDF5 object with wall-clock object timestamps disabled.
Definition Hdf5ObjectCreation.hpp:33
Definition AtomicOutputFile.hpp:25
hid_t createHdf5Dataset(hid_t location, const char *name, hid_t type, hid_t space, hid_t links, hid_t creation, hid_t access)
Create a dataset without wall-clock object timestamps.
Definition Hdf5ObjectCreation.hpp:55
hid_t createHdf5Group(hid_t location, const char *name, hid_t links, hid_t creation, hid_t access)
Create a group without wall-clock object timestamps.
Definition Hdf5ObjectCreation.hpp:72
hid_t createHdf5File(const char *path, unsigned flags, hid_t creation, hid_t access)
Create an HDF5 file without wall-clock object timestamps.
Definition Hdf5ObjectCreation.hpp:88