30 using LERR_(UNBOUND_ARGUMENTS);
35 const Symbol COMMAND_1{
"test.queue.command1"};
36 const Symbol COMMAND_3{
"test.queue.command3"};
60 .operation (command1::operate)
61 .captureUndo (command1::capture)
62 .undoOperation (command1::undoIt)
65 .operation (command3::operate)
66 .captureUndo (command3::capture)
67 .undoOperation (command3::undoIt)
72 Command::remove (COMMAND_1);
73 Command::remove (COMMAND_3);
82 verifyExecutabilityCheck();
101 CHECK (2 == queue.size());
104 CHECK (1 == queue.size());
108 CHECK (0 == queue.size());
109 CHECK (queue.empty());
114 verifyExecutabilityCheck()
124 CHECK (1 == queue.size());
127 CHECK (1 == queue.size());
129 queue.pop().execSync();
Helper class used solely for defining a Command-Object.
Command newInstance() const
create independent (anonymous) clone copy of this command
#define VERIFY_ERROR(ERROR_ID, ERRONEOUS_STATEMENT)
Macro to verify that a statement indeed raises an exception.
Steam-Layer implementation namespace root.
Implementation building block of SteamDispatcher to organise commands.
Token or Atom with distinct identity.
Marker types to indicate a literal string and a Symbol.
Simplistic test class runner.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
Implementation of the Session's command queue.
ExecResult execSync()
invoke using a default "synchronous" execution pattern
Some dummy command functions used for building unit test cases.
Handle object representing a single Command instance to be used by client code.
RET bind()
Accept dummy binding (0 Arg)
Actually defining a command and binding it to execution parameters.