QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
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 | |
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 42 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 51 of file qgsstoredexpressionmanager.h.
|
default |
|
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 69 of file qgsstoredexpressionmanager.h.
QString QgsStoredExpression::expression |
expression text
Definition at line 82 of file qgsstoredexpressionmanager.h.
QString QgsStoredExpression::id |
generated uuid used for identification
Definition at line 78 of file qgsstoredexpressionmanager.h.
QString QgsStoredExpression::name |
descriptive name of the expression
Definition at line 80 of file qgsstoredexpressionmanager.h.
Category QgsStoredExpression::tag = Category::FilterExpression |
category of the expression use case
Definition at line 84 of file qgsstoredexpressionmanager.h.