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

Home » Public Forums » archive » Re: Saved Object Question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Saved Object Question [message #67643 is a reply to message #67624] Wed, 19 August 2009 20:27 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Aug 19, 8:00 pm, David Fanning <n...@dfanning.com> wrote:
> I had reason to use this little routine this afternoon,
> and ran into a complication. When one of the object's
> superclasses is a built-in IDL routine (in this case
> IDL_Container), the routine fails, complaining--rightly--
> that it can't find the undefined procedure/function named
> idl_container__define.
>
> The line it is complaining on is, of course, the CALL_PROCEDURE
> line.

Maybe I misunderstood the problem, but it seems to me that the names
of the built-in classes should always be returned by a call to help.
So instead of searching for __DEFINE in the output of routine_info(),
Resolve_Obj could instead build a list of class names from the output
of help:

help,/objects,/full,output=hobjs
;pick only the output lines with class names:
hobjs=hobjs[where(strpos(hobjs,'** Object class') ne -1,nclasses)]
classes=strarr(nclasses) ;array for the known class names
;extract the class name from the rest of the help information:
for i=0,nclasses-1 do classes[i]=(strsplit(hobjs[i],' ,',/extract))[3]

Which when I run in a clean session in IDL 7.1 gives me 63 class
names.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: is-it possible to extract multiple profiles on multiple images from shape files
Next Topic: Yet another build script

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

Current Time: Sat Oct 11 03:41:26 PDT 2025

Total time taken to generate the page: 0.40250 seconds