QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
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. | |
QgsStoredExpression (QString name, QString expression, Category tag=Category::FilterExpression) | |
Create a new QgsStoredExpression with a generated uuid as id. | |
Public Attributes | |
QString | expression |
expression text | |
QString | id |
generated uuid used for identification | |
QString | name |
descriptive name of the expression | |
Category | tag = Category::FilterExpression |
category of the expression use case | |
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::FilterExpression |
category of the expression use case
Definition at line 85 of file qgsstoredexpressionmanager.h.