Skip to content

Adding feature to label columns and/or rows that of the struct variables names #2

@AcidLeroy

Description

@AcidLeroy

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:

x y z
0
1
2
3

Anyways, I'm looking for level of difficulty here and if it's worth tackling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions