CImCombine:SaveState
The SaveState method preserves all data members of the CImCombine class for later use.
CImCombine:SaveState() |
This method saves all data members of the CImCombine object. You can then perform calculations using new member values and, later, restore the prior state of all member variables using a single command (see RestoreState). Used with RestoreState, this command comprises a "push-pop" pair for the class data.
The following script fragment saves and restores the state of the CImCombine class:
C = CImCombine:new() |
-- create a CImCombine |
C:SaveState() |
-- preserve the state of all class members |
... |
-- change member values, apply class methods. |
C:RestoreState() |
-- restore the prior state of the class |