Need ideas for a data structure [message #3088] |
Wed, 02 November 1994 15:37 |
CroucAR1
Messages: 2 Registered: September 1994
|
Junior Member |
|
|
I'm trying to devise a way of dealing with a bunch of data items which will
consist of a fixed number of header fields and a widely varying number of data
entries. For one such item, an anonymous structure seems appropriate, but I
don't see how I can generalize this to an array.
If I define an array of structures based on the largest array (which I won't
know ahead of time anyway), I'll waste a huge amount of memory.
I thought of building an array of pointers to anonymous structures, but the
structures seem too anonymous for this to work.
Since I will be pulling the data from a large database, I could write the data
to a file, and let the processing programs read the file and define structures
on the fly, but this seems pretty inefficient.
Any better ideas would be greatly appreciated.
Thanks,
Art Croucher Johns Hopkins Applied Physics Lab
CroucAR1@subtech1.spacenet.jhuapl.edu
PS: I'm bi - it needs to work with both IDL and PV-Wave
|
|
|