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

Home » Public Forums » archive » making an object from class 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
making an object from class structure? [message #23316] Wed, 17 January 2001 07:14
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Hi object experts!

I am a little stymied on an "internal" object question. In the course
of restoring objects from a SAVE file, I can definitely restore the
class *structure*. That is, I can read the structure definition, the
super classes, etc and reconstruct a class structure filled with the
correct data.

My question is, how do I get an object "pointer" to it. To be clear,
the is the difference between S and O in the following code:

s = {objtype, name:'a', value: 27}
o = obj_new('objtype')

IDL> help, s, o
S STRUCT = -> OBJTYPE Array[1]
O OBJREF = <ObjHeapVar3(OBJTYPE)>

I have a structure like S, and want to make it into an object pointer
like O, preserving the data inside S.

Any ideas, or is this impossible?

Craig


--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to find if an object contains another
Next Topic: Re: An IDL STRTOK??? Was: TextoIDL Broken and Gone?

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

Current Time: Wed Oct 08 19:23:55 PDT 2025

Total time taken to generate the page: 0.00541 seconds