Lumiera
0.pre.03
»edit your freedom«
|
Shows how to define a simple command inline and how to trigger execution and UNDO. Verifies the command action takes place and is reverted again by the UNDO function.
This is a simplified demonstration. Usually, commands would be defined in bulk and without specifying parameters. Later, typically client code accesses a handle by ID, binds to the concrete argument and dispatches the invocation. Note in this example that by using a smart-ptr as argument allows accessing an object by reference and late binding.
Definition at line 93 of file command-basic-test.cpp.
Private Member Functions | |
virtual void | run (Arg) |