Would something like this be possible using fusion types and if so, would it be difficult? I need something like this and I might take a stab at it. I'm thinking something along these lines:
Given this struct
struct test_point {
test_point() = default;
test_point(float x, float y, float z) : x(x), y(y), z(z) {}
float x, y, z;
}
I'd like to write:
hdf::HDFFile<> file("teststruct.h5", hdf::HDFFile<>::truncate);
std::vector<test_point> points(4);
// populate test points...
boost::shared_ptr<hdf::HDFDataSet<> > datasetpoints
= file.writeDataset("/test", points);
Then, when viewing the hdf5 file with hdfview I would get something like this:
Anyways, I'm looking for level of difficulty here and if it's worth tackling.