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

Home » Public Forums » archive » Re: One file for each procedure/function?
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: One file for each procedure/function? [message #30339 is a reply to message #30338] Fri, 19 April 2002 05:49 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Pepijn Kenter wrote:
>
> Hi all.
>
> I'm currently writing analyses software (small programs plus routines) for
> an ozon measurement device and I'm new to IDL. A lot of the routines and
> programs have already been written and are ready for me to use. These
> routines have been grouped together in a few .pro files. These files are
> then compiled explicitly (by .compile statements) in the main programs. The
> programs are called from the command line.


Dear Pepijn,

the normal way for routines without widgets is to have only one routine
per file.
A widget has more as one routine. I am organizing all widget routines
e.g.
event_handler, init, set and get routine in one file.
To prevent conflicts with other routines I set as base name to all
routines
inside a file the same name.
e.g. "x_test.pro"

x_test_event,event
x_test


The other question is more about how to organize a library.
Some parts of a library is from external users and some are from members
of your group.
We did set up a path of idl_lib for external libraries and a path
idl_work
for our programmers. In the comment header of each routine
the routine is described and a category entry shows were it belongs too.
This header is used to build an online help system (html/javascript).
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_source/idl _html/idl_work_libraries.htm

The files are organized in user lib directories. All pathes are
collected
with one startup file to !path.
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_source/idl .all

To get the most speed in searching idl routines by idl is to have all
routines
in one directory.

This is quite easy by unix with links. Our idl file server is a unix
machine.
All needed routines are linked into one idl_links path.


hope this helps a bit

regards

Reimar

--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml
============================================================ =======
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Chain-Link Algorithm for Perimeter
Next Topic: Re: Chi-square decision trees

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

Current Time: Sat Oct 11 12:14:51 PDT 2025

Total time taken to generate the page: 1.68095 seconds