18#ifndef QGSSTOREDEXPRESSIONMANAGER_H 
   19#define QGSSTOREDEXPRESSIONMANAGER_H 
   53      FilterExpression        = 1 << 0, 
 
   54      DefaultValueExpression  = 1 << 1,  
 
   55      All                     = FilterExpression | DefaultValueExpression
 
 
   70      : id( QUuid::createUuid().toString() ),
 
   72        expression( expression ),
 
 
 
  115    void removeStoredExpression( 
const QString &
id );
 
  132    void addStoredExpressions( 
const QList< QgsStoredExpression > &storedExpressions );
 
  158    void clearStoredExpressions();
 
  161    bool writeXml( QDomNode &layerNode ) 
const;
 
  164    bool readXml( 
const QDomNode &layerNode );
 
  171    QList< QgsStoredExpression > mStoredExpressions;
 
 
Manages stored expressions regarding creation, modification and storing in the project.
 
QgsStoredExpressionManager()=default
 
Stored expression containing name, content (expression text) and a category tag.
 
QgsStoredExpression()=default
 
QString expression
expression text
 
Category
Categories of use cases FilterExpression for stored expressions to filter attribute table DefaultValu...
 
@ FilterExpression
Expressions to filter features.
 
QgsStoredExpression(QString name, QString expression, Category tag=Category::FilterExpression)
Create a new QgsStoredExpression with a generated uuid as id.
 
QString id
generated uuid used for identification
 
QString name
descriptive name of the expression
 
#define SIP_ENUM_BASETYPE(type)