9 #ifndef RMF_HDF5_DATA_SET_CREATION_PROPERTIES_D_H
10 #define RMF_HDF5_DATA_SET_CREATION_PROPERTIES_D_H
12 #include "RMF/config.h"
15 RMF_ENABLE_WARNINGS
namespace RMF {
27 template <
class TypeTraits,
unsigned int D>
32 if (comp == GZIP_COMPRESSION) {
34 }
else if (comp == SLIB_COMPRESSION) {
35 RMF_HDF5_CALL(H5Pset_szip(get_handle(), H5_SZIP_NN_OPTION_MASK, 32));
44 for (
unsigned int i = 0; i < D; ++i) {
45 cdims[i] = chunk_size[i];
54 std::fill(cdims + 1, cdims + D - 1, 4);
61 TypeTraits::get_hdf5_fill_type(),
62 &TypeTraits::get_fill_value()));
63 RMF_HDF5_CALL(H5Pset_fill_time(get_handle(), H5D_FILL_TIME_ALLOC));
64 RMF_HDF5_CALL(H5Pset_alloc_time(get_handle(), H5D_ALLOC_TIME_INCR));
77 TypeTraits::get_hdf5_fill_type(),
void set_custom_fill_value(typename TypeTraits::Type *pValue)
Sets custom fill value instead of the default one.
void set_chunk_size(DataSetIndexD< D > chunk_size)
Handle read/write of Model data from/to files.