Lumiera
0.pre.03
»edit your freedom«
|
details of how the DummyPlayer service can be started and used as independent "subsystem" within main()
Definition at line 50 of file dummy-player-service.cpp.
Private Types | |
using | ServiceHandle = lib::DependInject< DummyPlayerService >::ServiceInstance<> |
Private Member Functions | |
bool | checkRunningState () noexcept override |
whether this subsystem is actually operational. More... | |
operator string () const | |
a human readable name | |
bool | shouldStart (lumiera::Option &) override |
query application option state to determine if this subsystem should be activated. More... | |
bool | start (lumiera::Option &, Subsys::SigTerm terminationHandle) override |
attempt to bring up this subsystem up. More... | |
void | triggerShutdown () noexcept override |
initiate termination of this subsystem. More... | |
Private Attributes | |
ServiceHandle | thePlayer_ {ServiceHandle::NOT_YET_STARTED} |
manages the actual (single) instance of the player service impl | |
Additional Inherited Members | |
Public Types inherited from Subsys | |
typedef function< void(string *)> | SigTerm |
Public Member Functions inherited from Subsys | |
Subsys & | depends (Subsys &prereq) |
define a dependency to another Subsys required for running this subsystem | |
const std::vector< Subsys * > | getPrerequisites () |
bool | isRunning () noexcept |
|
inlineoverrideprivatevirtual |
query application option state to determine if this subsystem should be activated.
Implements Subsys.
Definition at line 63 of file dummy-player-service.cpp.
|
inlineoverrideprivatevirtual |
attempt to bring up this subsystem up.
On return, the subsystem must be operational, according to checkRunningState(). Failure to start up usually terminates the whole application. When this subsystem ceases to work, it must ensure to activate the given callback signal.
options | may be influencing the operation mode |
SigTerm | to be signalled by the subsystem. |
true
if actually started. Implements Subsys.
Definition at line 69 of file dummy-player-service.cpp.
|
inlineoverrideprivatevirtualnoexcept |
initiate termination of this subsystem.
This trigger may be called repeatedly any time... When the subsystem actually has terminated, the SigTerm passed to start must be invoked.
Implements Subsys.
Definition at line 78 of file dummy-player-service.cpp.
|
inlineoverrideprivatevirtualnoexcept |
whether this subsystem is actually operational.
When returning false
here, the application may terminate at any point without further notice Note further, that a subsystem must not be in running state when signalling termination.
Implements Subsys.
Definition at line 86 of file dummy-player-service.cpp.