31 #ifndef STAGE_TEST_PLACEHOLDER_COMMAND_H 32 #define STAGE_TEST_PLACEHOLDER_COMMAND_H 67 template<
typename...ARGS>
76 return lib::idi::generateExtendedID<PlaceholderCommand>();
82 return lib::idi::typeFullID<PlaceholderCommand>();
90 log_.
call(fullTypeID(),
"operate", std::forward<ARGS>(args)...);
94 capture (ARGS ...args)
96 return "Memento⧏" + util::join (util::stringify (args...),
"⧓") +
"⧐";
100 undo (ARGS ...,
string memento)
102 log_.
call(fullTypeID(),
"undo", memento);
110 log_ = invocationLog;
113 .captureUndo(PlaceholderCommand::capture)
114 .undoOperation(PlaceholderCommand::undo);
120 template<
typename...ARGS>
Helper class used solely for defining a Command-Object.
Support for verifying the occurrence of events from unit tests.
Helper to log and verify the occurrence of events.
static void operate(ARGS ...args)
a dummy command "operation
Generic functions to build identification schemes.
static string uniqueTypeInstance()
Token or Atom with distinct identity.
Set of stub command operations.
Marker types to indicate a literal string and a Symbol.
Lumiera GTK UI implementation root.
EventLog & call(string target, string function)
Log occurrence of a function call with no arguments.
Lumiera error handling (C++ interface).
Handle object representing a single Command instance to be used by client code.
Actually defining a command and binding it to execution parameters.