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

Home » Public Forums » archive » Re: defining a data 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
Re: defining a data structure [message #54472 is a reply to message #54464] Wed, 13 June 2007 11:39 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ingo von Borstel writes:

> I'm just starting to dive into IDL objects. As objects are based upon a
> certain struct, I need to define them beforehand. Unfortunately I fail
> to figure out how to put a structure definition into a file such that it
> is automatically found when calling the corresponding object creation
> routine.
>
> Could anyone please point me out how the myobjectstruct__define.pro has
> to look like in order for it being recognized? Just putting in the
> structure's definition doesn't work as well as writing the whole thing
> as a procedure or function.

Huh? Say what!?

Put your structure definition in the LAST module in the
file. Name the module STRUCT__DEFINE and name the file
struct__define.pro and you are finished. (Two underscores
in both the module and filenames.) Then just make the object:

IDL> obj = Obj_New('Struct')

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Dealing with Large data arrays, reducing memory and ASSOC
Next Topic: Re: large widget_trees

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

Current Time: Sat Oct 11 08:57:15 PDT 2025

Total time taken to generate the page: 0.96186 seconds