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

Home » Public Forums » archive » Treating an object as a structure
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Treating an object as a structure [message #65432] Wed, 04 March 2009 12:20 Go to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
If I've a struct I can do something like that:

a={s:'string', l: 0l}
print, n_tags(a)
print, tag_names(a)
help, a, /str
etc.

But if I've an object I can't do the same... Is it possible to parse
all the attributes inside the object using something similar ?
I mean, I don't want to use the GetProperty method, I only want to
know which attributes are stored in the definition of the object.

pro object__define
str ={ object, $
attribute_s: '', $
attribute_l: 0l }
end

The object saves a struct. It could be possible to take information
about this without the use of the getproperty method.

thanks
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: netCDF Read/Write Variable
Next Topic: Probably a Stupid Question

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

Current Time: Fri Oct 10 08:33:17 PDT 2025

Total time taken to generate the page: 1.91973 seconds