1 #ifndef MHO_HDF5ConversionHelpers_HH__
2 #define MHO_HDF5ConversionHelpers_HH__
40 for(
auto it = j.begin(); it != j.end(); ++it)
42 const std::string& key = it.key();
47 hid_t subgroup = H5Gcreate(parent_group, key.c_str(), H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
53 if(!(
value.begin()->is_object()))
59 hid_t array_group = H5Gcreate(parent_group, key.c_str(), H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
61 for(
const auto& elem :
value)
63 std::string item_name = std::to_string(idx++);
64 hid_t item_group = H5Gcreate(array_group, item_name.c_str(), H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
68 H5Gclose(array_group);
Definition: MHO_AdhocFlagging.hh:18
void make_attribute(const std::string &key, XValueType value, hid_t parent_dataset_id)
Definition: MHO_HDF5Attributes.hh:37
void json_to_hdf5_attributes(const mho_json &j, hid_t parent_group)
Definition: MHO_HDF5ConversionHelpers.hh:38