Commands

Commands are objects that encapsulate a change to a target (the data upon which the command operates). Commands are instantiations of the TCommandOn<> template class. Instantiations of template classes are parameterized by the type of the target they act upon.

A command is capable of making a change to the target object (doing), reversing a change to a target (undoing), and remaking (redoing) the change to the target. This protocol includes checking preconditions, and notifying of any changes in the status of the preconditions.

A command can:


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker