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

One bound model alias: the instance a document's alias names, and the calls made through it. More...

#include <interpreter.hpp>

Public Member Functions

 ModelChannel (ModelChannel const &)=delete
ModelChannel & operator= (ModelChannel const &)=delete
 ModelChannel (ModelChannel &&)=delete
ModelChannel & operator= (ModelChannel &&)=delete
virtual async::Completion< std::string > execute (std::string const &actionId, std::string const &bodyJson, CallOptions options)=0
 Sends one action.

Detailed Description

One bound model alias: the instance a document's alias names, and the calls made through it.

Definition at line 75 of file interpreter.hpp.

Member Function Documentation

◆ execute()

virtual async::Completion< std::string > morph::ui::ModelChannel::execute ( std::string const & actionId,
std::string const & bodyJson,
CallOptions options )
nodiscardpure virtual

Sends one action.

Parameters
actionIdThe action's registered type id.
bodyJsonThe action's JSON body.
optionsHow to send it.
Returns
The reply's JSON text, delivered on the runtime's owner.

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