Home »
Public Forums »
archive »
Re: One file for each procedure/function?
Re: One file for each procedure/function? [message #30339 is a reply to message #30338] |
Fri, 19 April 2002 05:49  |
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
============================================================ =======
|
|
|
Current Time: Sat Oct 11 12:14:51 PDT 2025
Total time taken to generate the page: 1.68095 seconds