Re: compile a routine wich inlude a commun [message #47062 is a reply to message #47059] |
Sun, 22 January 2006 15:57   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
L. Testut writes:
> PS: I've bought your book this month, and I really enjoy to read it,
> but my wife thinks it's a bit strange to read a programming book in my
> bed before to sleep !
My wife thought it strange that I got up in the middle
of the night to write it. :-)
The kind of application you are talking about would
be perfect for objects. You can easily abstract a
common object for your four satellites (each is associated
with a filename, has a defined header size, returns
data, etc., etc.). But then each satellite data object
is subclassed from this common object, and implements
the particulars for each individual satellite. With
objects, the interface to the objects is exactly
the same, but the details are different internally.
This means you could add a fifth satellite without,
for example, having to change any of your underlying
application code. This is MUCH smarter than common
blocks, and it allows you to extend your application
easily in ways you do not yet anticipate.
I'm available for consultation, if you need help with this. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|