morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::ScreenHostRegistry Class Reference

The host screens an application registers by name: what a catalog entry's host names instead of a document. More...

#include <host.hpp>

Public Member Functions

void add (std::string name, HostScreenFactory factory)
 Registers a host screen, replacing one of the same name.
HostScreenFactory const * find (std::string_view name) const
 The factory registered under name.

Detailed Description

The host screens an application registers by name: what a catalog entry's host names instead of a document.

Definition at line 180 of file host.hpp.

Member Function Documentation

◆ add()

void morph::ui::ScreenHostRegistry::add ( std::string name,
HostScreenFactory factory )
inline

Registers a host screen, replacing one of the same name.

Parameters
nameThe name a catalog entry's host gives.
factoryWhat mounts it.

Definition at line 185 of file host.hpp.

◆ find()

HostScreenFactory const * morph::ui::ScreenHostRegistry::find ( std::string_view name) const
inlinenodiscard

The factory registered under name.

Parameters
nameThe name.
Returns
It, or null when none is registered.

Definition at line 192 of file host.hpp.


The documentation for this class was generated from the following file: