[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: object wizards



Bernard Puc wrote:
> 
> Hello,
> 
>         Apparently, an array created with objarr() can only store one type of
> object.  And thats consistent with arrays of structures.  But, I want to
> store several different objects together somehow in a single variable.
> A structure doesn't work since I have a variable number of objects to
> store.  Therefore, is the only way to do this with an array of pointers,
> where each pointer references an object reference?
> 
> Any ideas much appreciated.
> --
> Bernard Puc                     AETC, INC.
> bpuc@va.aetc.com                1225 Jefferson Davis Highway #800
> (703) 413-0500                  Arlington, VA 22202


My advice would be to use a container. These are specifically designed
for this purpose. If you decide to do so, you may want to take a look
at my mgs_container object which you can find on my web pages:
http://www.mpimet.mpg.de/~schultz.martin/idl/
This extends the IDL_Container functionality by allowing object access
by name.

Cheers,
Martin

-- 
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
[[ Dr. Martin Schultz   Max-Planck-Institut fuer Meteorologie    [[
[[                      Bundesstr. 55, 20146 Hamburg             [[
[[                      phone: +49 40 41173-308                  [[
[[                      fax:   +49 40 41173-298                  [[
[[ martin.schultz@dkrz.de                                        [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[