| 162 | } |
| 163 | |
| 164 | void hdf5_save_string(hid_t loc_id, const string& dataset_name, |
| 165 | const string& s) { |
| 166 | herr_t status = \ |
| 167 | H5LTmake_dataset_string(loc_id, dataset_name.c_str(), s.c_str()); |
| 168 | CHECK_GE(status, 0) |
| 169 | << "Failed to save string dataset with name " << dataset_name; |
| 170 | } |
| 171 | |
| 172 | int hdf5_load_int(hid_t loc_id, const string& dataset_name) { |
| 173 | int val; |
no outgoing calls
no test coverage detected