QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
qgssqliteexpressioncompiler.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgssqliteexpressioncompiler.h
3  ---------------------------------
4  begin : November 2015
5  copyright : (C) 2015 Nyall Dawson
6  email : nyall dot dawson at gmail dot com
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef QGSSQLITEEXPRESSIONCOMPILER_H
17 #define QGSSQLITEEXPRESSIONCOMPILER_H
18 
20 
22 #include "qgsexpression.h"
23 
34 class CORE_EXPORT QgsSQLiteExpressionCompiler : public QgsSqlExpressionCompiler
35 {
36  public:
37 
41  explicit QgsSQLiteExpressionCompiler( const QgsFields& fields );
42 
43  protected:
44 
45  virtual Result compileNode( const QgsExpression::Node* node, QString& str ) override;
46  virtual QString quotedIdentifier( const QString& identifier ) override;
47  virtual QString quotedValue( const QVariant& value, bool& ok ) override;
48 
49 };
50 
52 
53 #endif // QGSSQLITEEXPRESSIONCOMPILER_H
Container of fields for a vector layer.
Definition: qgsfield.h:252
virtual QString quotedValue(const QVariant &value, bool &ok)
Returns a quoted attribute value, in the format expected by the provider.
Generic expression compiler for translation to provider specific SQL WHERE clauses.
virtual QString quotedIdentifier(const QString &identifier)
Returns a quoted column identifier, in the format expected by the provider.
virtual Result compileNode(const QgsExpression::Node *node, QString &str)
Compiles an expression node and returns the result of the compilation.