WIP: draft a message broadcasting function

not really sure about its usefullness, but it seems
low hanging fruit for me right now (while I am still
aware of all details how the UI-Bus works).

This might possibly be helpful to broadcast "reset" messages....
This commit is contained in:
Fischlurch 2016-02-14 01:47:21 +01:00
parent 1b9e4a7310
commit b5b62f101f

View file

@ -374,6 +374,28 @@ namespace test {
.beforeEvent("TestNexus","delivered mark to bID-charly"));
// broadcast message
uiBus.markAll (GenNode{"Message", "Foxtrot"});
CHECK (not mockA.isError());
CHECK (not mockB.isError());
CHECK ( mockC.isError());
CHECK ( mockA.isTouched());
CHECK ( mockB.isTouched());
CHECK ( mockC.isTouched());
CHECK ("Foxtrot" == mockA.getMessage());
CHECK ("Foxtrot" == mockB.getMessage());
CHECK ("Foxtrot" == mockC.getMessage());
CHECK ( "" == mockA.getError());
CHECK ( "" == mockB.getError());
CHECK ( "Echo" == mockC.getError());
CHECK (nexusLog.verifyEvent("mark", "Echo").id("Error")
.beforeCall("markAll").on("TestNexus").arg("Foxtrot")
.beforeEvent("broadcast", "Foxtrot")
.beforeCall("mark").on("TestNexus").arg("bravo", "GenNode-ID(\"Message\")-DataCap|«string»|Foxtrot")
.beforeCall("doMsg").on("bravo").arg("Foxtrot")
.beforeEvent("TestNexus", "broadcasted mark to 3 terminals"));
////////////////////////////////////////////////////////////////////////////////////////////////////TODO WIP
cout << "____Nexus-Log_________________\n"
<< util::join(nexusLog, "\n")