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

A command list, run as one batch. More...

#include <author.hpp>

Public Member Functions

 Commands ()=default
 No commands.
 Commands (Command const &command)
 One command.
 Commands (std::initializer_list< Command > commands)
 Commands in order.
bool empty () const noexcept
 Whether the list is empty.
Json json () const
 The list's JSON.

Detailed Description

A command list, run as one batch.

Definition at line 1646 of file author.hpp.

Constructor & Destructor Documentation

◆ Commands() [1/2]

morph::ui::author::Commands::Commands ( Command const & command)
inline

One command.

Parameters
commandThe command.

Definition at line 1688 of file author.hpp.

◆ Commands() [2/2]

morph::ui::author::Commands::Commands ( std::initializer_list< Command > commands)
inline

Commands in order.

Parameters
commandsThe commands.

Definition at line 1690 of file author.hpp.

Member Function Documentation

◆ empty()

bool morph::ui::author::Commands::empty ( ) const
inlinenodiscardnoexcept

Whether the list is empty.

Returns
True when it is.

Definition at line 1661 of file author.hpp.

◆ json()

Json morph::ui::author::Commands::json ( ) const
inlinenodiscard

The list's JSON.

Returns
An array of commands.

Definition at line 1665 of file author.hpp.


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