1#ifndef CHIHAYA_EXTERNAL_HDF5_HPP
2#define CHIHAYA_EXTERNAL_HDF5_HPP
5#include "ritsuko/ritsuko.hpp"
11#include "utils_misc.hpp"
33 if (version.ge(1, 1, 0)) {
34 throw std::runtime_error(
"'external_hdf5' array type is deprecated in versions >= 1.1");
36 auto deets = validate_minimal_array(group, version, options);
39 validate_scalar_string_dataset(group.openDataSet(
"file"));
41 std::throw_with_nested(std::runtime_error(
"failed to validate 'file'"));
44 validate_scalar_string_dataset(group.openDataSet(
"name"));
46 std::throw_with_nested(std::runtime_error(
"failed to validate 'name'"));
Validation for custom third-party arrays.
Namespace for all chihaya functions.
Definition binary_arithmetic.hpp:21
ArrayDetails validate_external_hdf5(const H5::Group &group, const ritsuko::Version &version, const Options &options)
Definition external_hdf5.hpp:32
Details about an array.
Definition utils_public.hpp:38
Options for validate().
Definition utils_public.hpp:79
bool details_only
Definition utils_public.hpp:84