179 typedef void Sig_oper(
int);
180 typedef long Sig_capt(
int);
181 typedef void Sig_undo(
int,
long);
204 CHECK (clone->isValid());
205 CHECK (!clone->canExec());
206 CHECK (1 == clone.use_count());
213 using ArgTuple = std::tuple<int>;
215 pImpl->setArguments(arg);
218 CHECK (!clone->canExec());
223 CHECK (clone->canExec());
Token or Atom with distinct identity.
Helper class used solely for defining a Command-Object.
auto operation(FUN operation_to_define)
Registry managing command implementation objects (Singleton).
void track(Symbol cmdID, Command const &commandHandle)
register a command (Frontend) under the given ID.
size_t index_size() const
Symbol findDefinition(Command const &cmdInstance) const
search the command index for a definition
shared_ptr< CommandImpl > newCommandImpl(function< SIG_OPER > &operFunctor, function< SIG_CAPT > &captFunctor, function< SIG_UNDO > &undoFunctor)
set up a new command implementation frame
static lib::Depend< CommandRegistry > instance
storage for the singleton factory used to access CommandRegistry
Command queryIndex(Symbol cmdID)
query the command index by ID
shared_ptr< CommandImpl > createCloneImpl(CommandImpl const &refObject)
create an allocation for holding a clone of the given CommandImpl data.
size_t instance_count() const
bool remove(Symbol cmdID)
remove the given command registration.
Handle object representing a single Command instance to be used by client code.
static bool remove(Symbol cmdID)
Command storeDef(Symbol newCmdID) const
create a clone definition
void checkAllocation(CommandRegistry ®istry)
void checkRegistration(CommandRegistry ®istry)
Actually defining a command and binding it to execution parameters.
Managing command definitions and the storage of individual command objects.
void undoIt(int, int64_t oldVal)
void operate(int someVal)
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.
Simplistic test class runner.
#define LAUNCHER(_TEST_CLASS_, _GROUPS_)
RET bind()
Accept dummy binding (0 Arg)
Marker types to indicate a literal string and a Symbol.
Some dummy command functions used for building unit test cases.
A collection of frequently used helper functions to support unit testing.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...