QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
Stored expression containing name, content (expression text) and a category tag. More...
#include <qgsstoredexpressionmanager.h>
Public Types | |
enum | Category { FilterExpression = 1 << 0 , DefaultValueExpression = 1 << 1 , All = FilterExpression | DefaultValueExpression } |
Categories of use cases FilterExpression for stored expressions to filter attribute table DefaultValueExpression for stored expressions to use for default values (not yet used) More... | |
Public Member Functions | |
QgsStoredExpression ()=default | |
Constructor for QgsStoredExpression. More... | |
QgsStoredExpression (QString name, QString expression, Category tag=Category::FilterExpression) | |
Create a new QgsStoredExpression with a generated uuid as id. More... | |
Public Attributes | |
QString | expression |
expression text More... | |
QString | id |
generated uuid used for identification More... | |
QString | name |
descriptive name of the expression More... | |
Category | tag |
category of the expression use case More... | |
Stored expression containing name, content (expression text) and a category tag.
Definition at line 41 of file qgsstoredexpressionmanager.h.
Categories of use cases FilterExpression for stored expressions to filter attribute table DefaultValueExpression for stored expressions to use for default values (not yet used)
Enumerator | |
---|---|
FilterExpression | Expressions to filter features. |
DefaultValueExpression | Expressions to determine default values (not yet used) |
All |
Definition at line 49 of file qgsstoredexpressionmanager.h.
|
default |
Constructor for QgsStoredExpression.
|
inline |
Create a new QgsStoredExpression with a generated uuid as id.
name | descriptive name of the expression |
expression | expression text |
tag | category of the expression use case - default FilterExpression |
Definition at line 70 of file qgsstoredexpressionmanager.h.
QString QgsStoredExpression::expression |
expression text
Definition at line 83 of file qgsstoredexpressionmanager.h.
QString QgsStoredExpression::id |
generated uuid used for identification
Definition at line 79 of file qgsstoredexpressionmanager.h.
QString QgsStoredExpression::name |
descriptive name of the expression
Definition at line 81 of file qgsstoredexpressionmanager.h.
Category QgsStoredExpression::tag |
category of the expression use case
Definition at line 85 of file qgsstoredexpressionmanager.h.