29 #ifndef COMMAND_TEST_DUMMY_COMMANDS_H 30 #define COMMAND_TEST_DUMMY_COMMANDS_H 45 using std::ostringstream;
54 extern int64_t check_;
70 undoIt (
int, int64_t oldVal)
86 extern ostringstream check_;
89 typedef function<string()> FunS;
92 operate (FunS func,
bool *fail)
94 if (fail and *fail)
throw External(
"simulated exception");
100 capture (FunS,
bool*)
106 undoIt (FunS,
bool *fail,
string previousProtocol)
108 if (fail and *fail)
throw External(
"simulated exception in UNDO");
111 check_ << previousProtocol <<
"|UNDO|";
138 undoIt (ulong oldVal)
CommandSetup test_Dummy_command3
test dummy command to increment a global variable; no arguments
CommandSetup test_Dummy_command1
test dummy command to add the argument to a global variable
Steam-Layer implementation namespace root.
Derived specific exceptions within Lumiera's exception hierarchy.
CommandSetup test_Dummy_command2
test dummy command to invoke the given functor and append the result onto a global log string buffer ...
Provision for setup of concrete commands for use by the UI.
A collection of frequently used helper functions to support unit testing.
Lumiera error handling (C++ interface).