40 #ifndef STAGE_TEST_PLACEHOLDER_COMMAND_H 41 #define STAGE_TEST_PLACEHOLDER_COMMAND_H 76 template<
typename...ARGS>
85 return lib::idi::generateExtendedID<PlaceholderCommand>();
91 return lib::idi::typeFullID<PlaceholderCommand>();
99 log_.
call(fullTypeID(),
"operate", std::forward<ARGS>(args)...);
103 capture (ARGS ...args)
105 return "Memento⧏" + util::join (util::stringify (args...),
"⧓") +
"⧐";
109 undo (ARGS ...,
string memento)
111 log_.
call(fullTypeID(),
"undo", memento);
119 log_ = invocationLog;
122 .captureUndo(PlaceholderCommand::capture)
123 .undoOperation(PlaceholderCommand::undo);
129 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.