35 using LERR_(INVALID_COMMAND);
36 using LERR_(DUPLICATE_COMMAND);
37 using LERR_(UNBOUND_ARGUMENTS);
38 using LERR_(INVALID_ARGUMENTS);
112 Command com (
"test.command1.2");
115 CHECK (contains (
string(com),
"test.command1.2"));
116 CHECK (contains (
string(com),
"{def}"));
131 invoke (
"test.command1.2") (1234);
258 c2.storeDef (
"test.command1.4");
291 #define BUILD_NEW_COMMAND_DEF(_ID_) \
293 .operation (command1::operate) \
294 .captureUndo (command1::capture) \
295 .undoOperation (command1::undoIt)
Helper class used solely for defining a Command-Object.
auto operation(FUN operation_to_define)
Handle object representing a single Command instance to be used by client code.
static bool defined(Symbol cmdID)
static size_t definition_count()
Command & unbind()
discard any argument data previously bound.
Command newInstance() const
create independent (anonymous) clone copy of this command
static Command get(Symbol cmdID)
Access existing command for use.
static bool remove(Symbol cmdID)
static size_t instance_count()
void stringRepresentation()
Actually defining a command and binding it to execution parameters.
Some additional helpers and convenience shortcuts to ease command invocation.
#define BUILD_NEW_COMMAND_DEF(_ID_)
void undoIt(int, int64_t oldVal)
void operate(int someVal)
int64_t check_
< test command just adding a given value
com::RuntimeCheckedCommandInvoker invoke(Symbol cmdID)
Steam-Layer implementation namespace root.
Test runner and basic definitions for tests.
bool isSameObject(A const &a, B const &b)
compare plain object identity, based directly on the referee's memory identities.
bool contains(MAP &map, typename MAP::key_type const &key)
shortcut for containment test on a map
Simplistic test class runner.
#define LAUNCHER(_TEST_CLASS_, _GROUPS_)
RET bind()
Accept dummy binding (0 Arg)
Some dummy command functions used for building unit test cases.
A collection of frequently used helper functions to support unit testing.
#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...