37#include <boost/ref.hpp>
38#include <boost/lexical_cast.hpp>
51 using boost::lexical_cast;
54 using LERR_(EXTERNAL);
66 return contains ( command2::check_.
str()
140 bool success = com();
146 success = com.
undo();
159 success = com.
undo();
219#define __DELAY__ usleep(10000);
221 bool thread_has_ended{
false};
229 string cmdID {
"test.command2"};
250 CHECK (thread_has_ended);
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.
HandlingPattern::ID setHandlingPattern(HandlingPattern::ID)
define a handling pattern to be used by default
static size_t definition_count()
static Command get(Symbol cmdID)
Access existing command for use.
static bool remove(Symbol cmdID)
Command storeDef(Symbol newCmdID) const
create a clone definition
static size_t instance_count()
Interface: Operation Skeleton how to invoke or undo a command.
static HandlingPattern const & get(ID id)
retrieve the pre-configured pattern
static lib::Depend< SessionCommand > facade
static storage for the facade access front-end
static lib::Depend< SteamDispatcher > instance
storage for Singleton access
void check_DispatcherInvocation()
void check_defaultHandlingPattern()
void check_ThrowOnError()
A front-end for using printf-style formatting.
Actually defining a command and binding it to execution parameters.
Steam-Layer command frontend.
lumiera_err lumiera_error_peek(void)
Check current error state without clearing it Please avoid this function and use lumiera_error() if p...
Pre-defined command execution skeletons.
void lumiera_interfaceregistry_init(void)
Initialise the interface registry.
void lumiera_interfaceregistry_destroy(void)
Global registry for interfaces (extension points).
void throwOnError()
Check the lumiera error state, which maybe was set by C-code.
string capture(FunS, bool *)
void undoIt(FunS, bool *fail, string previousProtocol)
void operate(FunS func, bool *fail)
bool protocolled(TY val2check)
diagnostics: checks if the given value has been written to the test protocol (string stream) of comma...
Steam-Layer implementation namespace root.
Test runner and basic definitions for tests.
bool contains(MAP &map, typename MAP::key_type const &key)
shortcut for containment test on a map
std::string toString(TY const &val) noexcept
get some string representation of any object, reliably.
Simplistic test class runner.
#define LAUNCHER(_TEST_CLASS_, _GROUPS_)
Major public Interface to the Session subsystem of Lumiera GUI.
Dispatch and execute mutation operations on the High-level model.
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...