SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
openswmmvis::feature::FieldChoice Struct Reference

One entry of a choice list (workplans/FEATURE_LAYER_ROLES_AND_FIELDS_PLAN_2026-09-30.md P2). More...

#include <featuretypes.h>

Collaboration diagram for openswmmvis::feature::FieldChoice:

Public Member Functions

QString displayLabel () const
 
bool operator== (const FieldChoice &o) const
 Compare complete stored field/schema values.
 
bool operator!= (const FieldChoice &o) const
 Test whether stored field/schema values differ.
 

Public Attributes

QString value
 Stored token.
 
QString label
 Shown in combos; empty means "show the value".
 

Detailed Description

One entry of a choice list (workplans/FEATURE_LAYER_ROLES_AND_FIELDS_PLAN_2026-09-30.md P2).

The VALUE is what the table stores: a stable token ("triangles", "TS_STAGE"), never a translated label (plan Q5).

Member Function Documentation

◆ displayLabel()

QString openswmmvis::feature::FieldChoice::displayLabel ( ) const
inline
Returns
Nonempty explicit label, otherwise the stable stored choice token.

◆ operator!=()

bool openswmmvis::feature::FieldChoice::operator!= ( const FieldChoice &  o) const
inline

Test whether stored field/schema values differ.

Parameters
[in]oValue to compare without mutation.
Returns
Logical negation of operator==; schema/choice order remains significant.

◆ operator==()

bool openswmmvis::feature::FieldChoice::operator== ( const FieldChoice &  o) const
inline

Compare complete stored field/schema values.

Parameters
[in]oValue to compare without mutation.
Returns
True for equal stored fields, including choice order/editor hints where present.

Member Data Documentation

◆ label

QString openswmmvis::feature::FieldChoice::label

Shown in combos; empty means "show the value".

◆ value

QString openswmmvis::feature::FieldChoice::value

Stored token.


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