42 using LERR_(LIFECYCLE);
43 using LERR_(INVALID_COMMAND);
44 using LERR_(DUPLICATE_COMMAND);
45 using LERR_(UNBOUND_ARGUMENTS);
70 queue_.emplace_front (move (
cmd));
77 return queue_.end()!= std::find_if (queue_.begin()
138 int r1{rani(1000)},
r2{rani(2000)};
141 iManager.bindAndDispatch (COMMAND_PROTOTYPE, Rec{
r1});
144 Command com{COMMAND_PROTOTYPE};
146 CHECK (com.canExec());
148 iManager.dispatch (COMMAND_PROTOTYPE);
170 Symbol instanceID =
iManager.newInstance (COMMAND_PROTOTYPE, INVOCATION_ID);
223 int r1{rani(100)},
r2{rani(200)},
r3{rani(300)};
285 CHECK ( fixture.contains (
c2));
323 iManager.newInstance (COMMAND_PROTOTYPE,
"i1");
345 Symbol instanceID{COMMAND_PROTOTYPE, INVOCATION_ID};
369 CHECK (instanceID ==
iManager.newInstance (COMMAND_PROTOTYPE, INVOCATION_ID));
393 iManager.dispatch (COMMAND_PROTOTYPE);
Token or Atom with distinct identity.
Interface of a service to perform Commands on the session.
Maintain a current command instance for parametrisation.
Handle object representing a single Command instance to be used by client code.
static Command get(Symbol cmdID)
Access existing command for use.
void verify_simpleUsage()
void verify_instanceIdentity()
void verify_extendedUsage()
void enqueue(Command &&cmd) override
std::deque< Command > queue_
bool contains(Command const &ref)
A front-end for using printf-style formatting.
Service to support forming and invocation of command instances for use by the UI.
Conveniently iterable stack and queue containers.
const Symbol COMMAND_PROTOTYPE
const string INVOCATION_ID
int64_t check_
< test command just adding a given value
CommandSetup test_Dummy_command1
test dummy command to add the argument to a global variable
Steam-Layer implementation namespace root.
Test runner and basic definitions for tests.
Simplistic test class runner.
#define LAUNCHER(_TEST_CLASS_, _GROUPS_)
Some dummy command functions used for building unit test cases.
#define VERIFY_ERROR(ERROR_ID, ERRONEOUS_STATEMENT)
Macro to verify that a statement indeed raises an exception.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...