comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Need ideas for a data structure
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Need ideas for a data structure [message #3088] Wed, 02 November 1994 15:37
CroucAR1 is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: measuring interest
Next Topic: Resetting a DRAW widget to have new size/scroll area...?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:33:36 PDT 2025

Total time taken to generate the page: 0.00512 seconds