15 #define H5_VERSION_GE(Maj,Min,Rel) \
16 (((H5_VERS_MAJOR==Maj) && (H5_VERS_MINOR==Min) && (H5_VERS_RELEASE>=Rel)) || \
17 ((H5_VERS_MAJOR==Maj) && (H5_VERS_MINOR>Min)) || \
36 H5::H5File try_open_file(
42 template <
typename T>
inline const PredType&
type();
43 template <>
inline const PredType& type<int>() {
return PredType::NATIVE_INT; }
44 template <>
inline const PredType& type<unsigned long>() {
return PredType::NATIVE_UINT; }
45 template <>
inline const PredType& type<long int>() {
return PredType::NATIVE_LONG; }
46 template <>
inline const PredType& type<long long int>() {
return PredType::NATIVE_LLONG; }
47 template <>
inline const PredType& type<float>() {
return PredType::NATIVE_FLOAT; }
48 template <>
inline const PredType& type<double>() {
return PredType::NATIVE_DOUBLE; }
49 template <>
inline const PredType& type<long double>() {
return PredType::NATIVE_LDOUBLE; }
53 template <
typename Container>
54 inline typename std::enable_if<
58 make_dataspace(
const Container&
shape) {
59 return H5::DataSpace{shape.size(), shape.data()};
68 #endif // HDF5_UTILS_H