Lumiera
0.pre.03
»edit your freedom«
|
#include "stage/ctrl/core-service.hpp"
Attachment point to »central services« within the UI-Bus.
This special implementation of the [BusTerm] interface receives and handles those messages to be processed by centralised services:
Definition at line 114 of file core-service.hpp.
Public Member Functions | |
CoreService (ID identity=lib::idi::EntryID< CoreService >()) | |
StateManager & | getStateManager () |
Public Member Functions inherited from BusTerm | |
BusTerm (BusTerm &&)=default | |
may be moved, but not copied, due to the embedded identity | |
virtual | ~BusTerm () |
this is an interface More... | |
BusTerm | attach (ID, Tangible &newNode) |
Builder function: establish and wire a new BusTerm. More... | |
virtual bool | change (ID subject, MutationMessage &&diff) |
alter and reshape the designated subject by applying the given diff message. More... | |
ID | getID () const |
virtual bool | mark (ID subject, GenNode const &mark) |
route a state update or notification to the given subject. More... | |
virtual size_t | markAll (GenNode const &mark) |
broadcast a notification message to all currently connected bus terminals. More... | |
void | note (GenNode const &mark) |
record state mark from this subject | |
virtual | operator string () const |
Private Member Functions | |
virtual void | act (GenNode const &command) override |
prepare or trigger invocation of a command. More... | |
virtual void | note (ID subject, GenNode const &stateMark) override |
capture and record a "state mark" for later replay for restoring UI state. More... | |
Private Member Functions inherited from NonCopyable | |
NonCopyable (NonCopyable const &)=delete | |
NonCopyable & | operator= (NonCopyable const &)=delete |
Private Attributes | |
StateRecorder | stateRecorder_ |
Nexus | uiBusBackbone_ |
Additional Inherited Members | |
Public Types inherited from BusTerm | |
using | ID = EntryID const & |
Protected Types inherited from BusTerm | |
using | EntryID = lib::idi::BareEntryID |
using | Tangible = stage::model::Tangible |
Protected Member Functions inherited from BusTerm | |
BusTerm (ID identity, BusTerm &attached_to) | |
bool | isShortCircuit (ID) const noexcept |
virtual BusTerm & | routeAdd (ID, Tangible &) |
virtual void | routeDetach (ID) noexcept |
Protected Attributes inherited from BusTerm | |
EntryID | endpointID_ |
BusTerm & | theBus_ |
|
inlineoverrideprivatevirtual |
prepare or trigger invocation of a command.
command | a GenNode either holding command parameters |
Reimplemented from BusTerm.
Definition at line 124 of file core-service.hpp.
References SessionCommand::facade.
|
inlineoverrideprivatevirtual |
capture and record a "state mark" for later replay for restoring UI state.
subject | the endpoint-ID of the emitting element |
mark | the actual state update or notification message to be remembered |
Reimplemented from BusTerm.
Definition at line 131 of file core-service.hpp.
References BusTerm::BusTerm(), and StateRecorder::recordState().