#include <h5cpp/all>
#include <cstddef>
#include <numeric>
int main(){
{
h5::dt_t<int> my_int_type;
hid_t capi_style_id = static_cast<hid_t>( my_int_type );
H5CPP_CHECK_EQ( H5Tequal(capi_style_id, H5T_NATIVE_INT),
std::cout << h5::name<int>::value <<
std::endl;
}
{
dcpl0 |= dcpl1;
}
{
try {
} catch ( const h5::error::any& err ){
}
}
{
h5::fapl_t fapl = h5::fclose_degree_weak | h5::stdio;
auto some_prop = h5::libver_bounds({H5F_LIBVER_LATEST, H5F_LIBVER_LATEST});
(void)some_prop;
h5::dcpl_t dcpl =
h5::chunk{2,3} | h5::fill_value<short>{42} | h5::fletcher32 | h5::shuffle | h5::nbit | h5::gzip{9};
}
{
hid_t ref = static_cast<hid_t>( fd );
(void)ref;
}
{
h5::create(
"003.h5", H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT );
}
{
h5::current_dims{10,20}, h5::max_dims{10,H5S_UNLIMITED},
h5::create_path | h5::utf8,
h5::chunk{2,3} | h5::fill_value<short>{42} | h5::fletcher32 | h5::shuffle | h5::nbit | h5::gzip{9},
h5::default_dapl );
h5::dcpl_t dcpl =
h5::chunk{2,3} | h5::fill_value<short>{42} | h5::fletcher32 | h5::shuffle | h5::nbit | h5::gzip{2};
auto ds_1 =
h5::create<short>(fd,
"/type/short/tree_1", h5::current_dims{10,20}, h5::max_dims{10,H5S_UNLIMITED}, dcpl);
auto ds_2 =
h5::create<short>(fd,
"/type/short/tree_2", h5::current_dims{10,20}, h5::max_dims{10,H5S_UNLIMITED},
h5::default_lcpl, dcpl, h5::default_dapl);
auto ds_3 =
h5::create<short>(fd,
"/type/short/max_dims", h5::max_dims{10,H5S_UNLIMITED},
}
{
}
}
h5::at_t create(const hid_t &parent, const std::string &path, args_t &&... args)
Create a new attribute of element type T on a parent HDF5 object.
Definition H5Acreate.hpp:100
T aread(const hid_t &ds, const std::string &name, const h5::acpl_t &acpl=h5::default_acpl)
Read an attribute by name and return its value as type T.
Definition H5Aread.hpp:76
h5::gr_t write(const LOC &parent, const std::string &path, const T &src)
Write a sparse matrix or vector as a CSC group.
Definition H5Dsparse.hpp:185
void unmute()
restores previously saved error handler with h5::mute Read on Error Handling/Exceptions
Definition H5Eall.hpp:41
void mute()
removes default error handler preventing diagnostic error messages printed for direct CAPI calls....
Definition H5Eall.hpp:28