33 #ifndef CONTROL_HANDLING_PATTERNS_DEF_H 34 #define CONTROL_HANDLING_PATTERNS_DEF_H 59 bool isValid()
const {
return true; }
65 command.invokeCapture();
66 command.invokeOperation();
90 UNIMPLEMENTED (
"actually invoke a command, according to this pattern");
96 UNIMPLEMENTED (
"actually undo the effect of a command, according to this pattern");
100 isValid()
const override 102 UNIMPLEMENTED (
"is this pattern currently able to handle commands?");
120 UNIMPLEMENTED (
"actually invoke a command, according to this pattern");
126 UNIMPLEMENTED (
"actually undo the effect of a command, according to this pattern");
130 isValid()
const override 132 UNIMPLEMENTED (
"is this pattern currently able to handle commands?");
150 UNIMPLEMENTED (
"actually invoke a command, according to this pattern");
156 UNIMPLEMENTED (
"actually undo the effect of a command, according to this pattern");
160 isValid()
const override 162 UNIMPLEMENTED (
"is this pattern currently able to handle commands?");
188 REQUIRE (patternTable.contains(
id));
Handling Pattern: invoke blocking, translate exceptions into an error state.
Handling Pattern: just schedule command to be invoked asynchronously.
Framework for building a configurable factory, to generate families of related objects.
bool canExec() const
< state check: sufficiently defined to be invoked
Top level of the command implementation.
Steam-Layer implementation namespace root.
Handling Pattern: invoke blocking, propagating any exceptions immediately.
HandlingPatternFactory patternTable
holds singleton pattern instances by ID
Factory for creating a family of objects by ID.
bool canUndo() const
< state check: has undo state been captured?
HandlingPattern const & getPatternInstance(HandlingPattern::ID id)
access the singleton instance for a given ID
Pre-defined command execution skeletons.
Lumiera error handling (C++ interface).
Handling Pattern Foundation: invoke command directly and without any external intervention.
Steam-Layer Command implementation.
Convenience shortcut for automatically setting up a production line, to fabricate a singleton instanc...
Interface: Operation Skeleton how to invoke or undo a command.