38 #ifndef COMMAND_TEST_DUMMY_COMMANDS_H 39 #define COMMAND_TEST_DUMMY_COMMANDS_H 54 using std::ostringstream;
63 extern int64_t check_;
79 undoIt (
int, int64_t oldVal)
95 extern ostringstream check_;
98 typedef function<string()> FunS;
101 operate (FunS func,
bool *fail)
103 if (fail and *fail)
throw External(
"simulated exception");
109 capture (FunS,
bool*)
115 undoIt (FunS,
bool *fail,
string previousProtocol)
117 if (fail and *fail)
throw External(
"simulated exception in UNDO");
120 check_ << previousProtocol <<
"|UNDO|";
147 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).