chihaya
Validating delayed array operations in HDF5
Loading...
Searching...
No Matches
external_hdf5.hpp
Go to the documentation of this file.
1#ifndef CHIHAYA_EXTERNAL_HDF5_HPP
2#define CHIHAYA_EXTERNAL_HDF5_HPP
3
4#include "H5Cpp.h"
5#include "ritsuko/ritsuko.hpp"
6
7#include "custom_array.hpp"
8#include "utils_misc.hpp"
9
15namespace chihaya {
16
25inline ArrayDetails validate_external_hdf5(const H5::Group& group, const ritsuko::Version& version, const Options& options) {
26 if (version.ge(1, 1, 0)) {
27 throw std::runtime_error("'external_hdf5' array type is deprecated in versions >= 1.1");
28 }
29 auto deets = validate_minimal_array(group, version, options);
30 if (!options.details_only) {
31 safe_open_scalar_string_dataset(group, "file");
32 safe_open_scalar_string_dataset(group, "name");
33 }
34 return deets;
35}
36
37}
38
39#endif
Validation for custom third-party arrays.
Namespace for all chihaya functions.
Definition binary_arithmetic.hpp:20
ArrayDetails validate_external_hdf5(const H5::Group &group, const ritsuko::Version &version, const Options &options)
Definition external_hdf5.hpp:25
Details about an array.
Definition utils_public.hpp:37
Validation options.
Definition utils_public.hpp:67
bool details_only
Definition utils_public.hpp:72