Re: object serialization in IDL? [message #83872] |
Thu, 11 April 2013 07:01 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
superchromix writes:
> I have a standalone IDL application that is composed of a number of
> objects (for example, window object and several image objects). I
> would like to be able to save the state of the whole application, and
> then restore it again later. Does anyone know of a good tutorial for
> doing this? I guess it would involve the SAVE and RESTORE methods, or
> some other form of object serialization..?
Tutorial, no. Example, yes.
You can save and restore cgWindows, including all the internal commands,
etc. (Handy for e-mailing to colleagues so they can see exactly what you
are seeing.) You can see how this is done by looking at the SaveCommands
and RestoreCommands methods in the cgCmdWindow object:
http://www.idlcoyote.com/programs/cgcmdwindow__define.pro
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|