![]() |
Lumiera 0.pre.04
»edit your freedom«
|
#include "include/session-command-facade.h"
Global access point to invoke commands and cause edit operations within the Session.
Any changes to the session are effected by prepared functors bound into a steam::control::Command registration. A command instance will first be outfitted with suitable parameters to define the target and to qualify and elaborate the action, before it can be actually triggered. Commands then go through a queue to be invoked one by one.
The service exposed through this facade offers dedicated support for the standard command cycle, as is typically performed from the UI. Such a usage cycle starts with "opening" a local anonymous clone copy from the global command definition, which is then used in further calls to be outfitted with actual arguments and finally to be handed over to the dispatcher for execution.
| lumiera::error::State | when interface is not opened |
Definition at line 87 of file session-command-facade.h.
Static Public Attributes | |
| static lib::Depend< SessionCommand > | facade |
| static storage for the facade access front-end | |
Public Member Functions | |
| virtual Symbol | cycle (Symbol cmdID, string const &invocationID)=0 |
| start next command cycle and "open" a new anonymous command instance | |
| virtual void | trigger (Symbol cmdID, lib::diff::Rec const &args)=0 |
| bind the command's arguments and trigger command invocation immediately | |
| virtual void | bindArg (Symbol cmdID, lib::diff::Rec const &args)=0 |
| prepare command invocation: bind the command's arguments | |
| virtual void | invoke (Symbol cmdID)=0 |
| trigger invocation of a prepared command | |
Friends | |
| class | lib::DependencyFactory< SessionCommand > |
Protected Member Functions | |
| virtual | ~SessionCommand () |
| this is an interface | |
|
inlineprotectedvirtual |
this is an interface
Definition at line 106 of file session-command-facade.h.
start next command cycle and "open" a new anonymous command instance
Implemented in SessionCommandService.
|
pure virtual |
bind the command's arguments and trigger command invocation immediately
|
pure virtual |
prepare command invocation: bind the command's arguments
trigger invocation of a prepared command
Implemented in SessionCommandService.
|
static |
static storage for the facade access front-end
Definition at line 90 of file session-command-facade.h.
Referenced by CoreService::act(), CommandUse2_test::check_DispatcherInvocation(), SessionCommandFunction_test::perform_messageInvocation(), and SessionCommandFunction_test::perform_simpleInvocation().
|
friend |
Definition at line 106 of file session-command-facade.h.
Inheritance diagram for SessionCommand:
Collaboration diagram for SessionCommand: