morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::forms::ChoiceOption Struct Reference

One selectable value of an Enum or a Choice. More...

#include <field_model.hpp>

Public Member Functions

bool operator== (ChoiceOption const &other) const =default
 Member-wise equality.

Public Attributes

std::string valueJson
 The value as the JSON literal the body carries ("\"Viewer\\"\"</tt>, <tt>\"9007199254740993\").
std::string label
 What the user sees.

Detailed Description

One selectable value of an Enum or a Choice.

Definition at line 131 of file field_model.hpp.

Member Function Documentation

◆ operator==()

bool morph::forms::ChoiceOption::operator== ( ChoiceOption const & other) const
default

Member-wise equality.

Parameters
otherThe other option.
Returns
true when value and label match.

Member Data Documentation

◆ valueJson

std::string morph::forms::ChoiceOption::valueJson

The value as the JSON literal the body carries ("\"Viewer\\"\"</tt>, <tt>\"9007199254740993\").

Definition at line 133 of file field_model.hpp.

◆ label

std::string morph::forms::ChoiceOption::label

What the user sees.

Definition at line 135 of file field_model.hpp.


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