Hi,

 you just need a different HDF5 type for the memory (the struct including
your pointer) and for the layout on disk (struct with same member names
and compatible data types, but omitting the pointer member). Then HDF5
will just do this conversion and write only those disk-struct members,
reading data from the memory-struct, except your pointer which is not
used for disk output then.

        Werner

On Tue, 22 Nov 2011 08:21:34 -0600, jwomble <[email protected]> wrote:

Hello,
I have an array of structs that I need to write to a dataset.  One of the
members of the struct is a pointer to an array of floats.  Right now I am
creating a compound datatype and treating the pointer as an unsigned int,
and this works, but the pointer information is obviously useless data. Is
there a way to write this array, but skip the pointer memeber?

Here is what I am currently doing:





Thanks!


--
View this message in context: http://hdf-forum.184993.n3.nabble.com/How-to-skip-a-member-in-a-struct-tp3527822p3527822.html
Sent from the hdf-forum mailing list archive at Nabble.com.

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org



--
___________________________________________________________________________
Dr. Werner Benger                Visualization Research
Laboratory for Creative Arts and Technology (LCAT)
Center for Computation & Technology at Louisiana State University (CCT/LSU)
211 Johnston Hall, Baton Rouge, Louisiana 70803
Tel.: +1 225 578 4809                        Fax.: +1 225 578-5362

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to