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::FieldDef Struct Reference

One user-defined attribute column. More...

#include <featuretypes.h>

Collaboration diagram for openswmmvis::feature::FieldDef:

Public Member Functions

bool isValid () const
 
QJsonObject toJson () const
 
bool operator== (const FieldDef &o) const
 
bool operator!= (const FieldDef &o) const
 

Static Public Member Functions

static FieldDef fromJson (const QJsonObject &o)
 

Public Attributes

QString name
 OGR field name; see sanitizeFieldName.
 
FieldType type = FieldType::Text
 
QVariant defaultValue
 Applied to new features; may be invalid.
 
QString description
 Tooltip in the schema editor and property panel.
 

Detailed Description

One user-defined attribute column.

Member Function Documentation

◆ fromJson()

FieldDef openswmmvis::feature::FieldDef::fromJson ( const QJsonObject &  o)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isValid()

bool openswmmvis::feature::FieldDef::isValid ( ) const
inline
Here is the caller graph for this function:

◆ operator!=()

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

◆ operator==()

bool openswmmvis::feature::FieldDef::operator== ( const FieldDef o) const

◆ toJson()

QJsonObject openswmmvis::feature::FieldDef::toJson ( ) const
Here is the call graph for this function:

Member Data Documentation

◆ defaultValue

QVariant openswmmvis::feature::FieldDef::defaultValue

Applied to new features; may be invalid.

◆ description

QString openswmmvis::feature::FieldDef::description

Tooltip in the schema editor and property panel.

◆ name

QString openswmmvis::feature::FieldDef::name

OGR field name; see sanitizeFieldName.

◆ type

FieldType openswmmvis::feature::FieldDef::type = FieldType::Text

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