| 1017 | // higher level c++ utils |
| 1018 | |
| 1019 | hid_t createResultGroup(hid_t obj, hid_t gplist, const std::string &result_name, |
| 1020 | const std::string &disp_name, const std::string &components, int num_components, |
| 1021 | const std::string &dimension, const std::string &description, |
| 1022 | int result_type, int data_type) |
| 1023 | { |
| 1024 | herr_t status; |
| 1025 | hid_t h_gp_result = h5::group::create(obj, result_name.c_str(), H5P_DEFAULT, gplist, H5P_DEFAULT); |
| 1026 | status = h5::attribute::write(h_gp_result, "DISPLAY_NAME", disp_name); |
| 1027 | status = h5::attribute::write(h_gp_result, "COMPONENTS", components); |
| 1028 | status = h5::attribute::write(h_gp_result, "DIMENSION", dimension); |
| 1029 | status = h5::attribute::write(h_gp_result, "DESCRIPTION", description); |
| 1030 | status = h5::attribute::write(h_gp_result, "TYPE", result_type); |
| 1031 | status = h5::attribute::write(h_gp_result, "DATA_TYPE", data_type); |
| 1032 | return h_gp_result; |
| 1033 | } |
| 1034 | |
| 1035 | } |
| 1036 |
no test coverage detected