The IDLitDataOperation class is a subclass of IDLitOperation that automates data access and automatically records information for the undo-redo system. By automating this functionality, the IDLitDataOperation class eliminates much of the work required to implement a standard subclass of the IDLitOperation class. See IDLitOperation for additional information on iTool operations.
| Note |
While the implementation of a standard subclass of an IDLitOperation class requires the developer to provide implementations of the DoAction, UndoOperation, and RedoOperation methods, the IDLitDataOperation class provides these methods automatically. The only method the developer of an IDLitDataOperation class is required to implement is the Execute method, which contains the logic for the specific operation being performed. Depending on the operation being performed, the developer of an IDLitDataOperation may also implement methods to reverse (or un-execute) the operation, display a user interface before performing the operation, get and set properties specific to the operation, and initialize the IDLitDataOperation object.
When an IDLitDataOperation is requested by a user, the following things occur:
For each data object that includes data of an iTool data type supported by the IDLitDataOperation, the following things occur:
Once all selected data items have been processed, the undo-redo command set is placed into the system undo-redo buffer for later use.
For a detailed discussion of both the IDLitOperation and IDLitDataOperation classes, see Creating an Operation.
This class is written in the IDL language. Its source code can be found in the file idlitdataoperation__define.pro in the lib/itools/framework subdirectory of the IDL distribution.
Objects of this class have no properties of their own, but do have properties inherited from any superclasses.
This class has the following methods:
In addition, this class inherits the methods of its superclasses (if any).
See Creating a New Data-Centric Operation for examples using this class and its methods.
Introduced: 6.0