9 #ifndef RMF_HDF5_DATA_SET_ACCESS_PROPERTIES_D_H
10 #define RMF_HDF5_DATA_SET_ACCESS_PROPERTIES_D_H
12 #include "RMF/config.h"
16 RMF_ENABLE_WARNINGS
namespace RMF {
20 template <
class TypeTraits,
unsigned int D>
22 std::shared_ptr<SharedHandle> h_;
26 : h_(
new SharedHandle(H5Pcreate(type), &H5Pclose,
"Properties")) {}
29 hid_t get_handle()
const {
return *h_; }
33 void set_chunk_cache_size(
unsigned int entries,
unsigned int size_bytes,
34 double policy = .75) {
36 H5Pset_chunk_cache(get_handle(), entries, size_bytes, policy));
39 : h_(
new SharedHandle(H5Pcreate(H5P_DATASET_ACCESS), &H5Pclose,
Handle read/write of Model data from/to files.