QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
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
19
21
22
#include "qgis_core.h"
23
#include "
qgssqlexpressioncompiler.h
"
24
25
#define SIP_NO_FILE
26
36
37
class
CORE_EXPORT QgsSQLiteExpressionCompiler :
public
QgsSqlExpressionCompiler
38
{
39
public
:
47
explicit
QgsSQLiteExpressionCompiler(
const
QgsFields &fields,
bool
ignoreStaticNodes =
false
);
48
49
protected
:
50
Result
compileNode
(
const
QgsExpressionNode *node, QString &str )
override
;
51
QString
quotedIdentifier
(
const
QString &identifier )
override
;
52
QString
quotedValue
(
const
QVariant &value,
bool
&ok )
override
;
53
QString
sqlFunctionFromFunctionName
(
const
QString &fnName )
const override
;
54
QStringList
sqlArgumentsFromFunctionName
(
const
QString &fnName,
const
QStringList &fnArgs )
const override
;
55
QString
castToReal
(
const
QString &value )
const override
;
56
QString
castToInt
(
const
QString &value )
const override
;
57
QString
castToText
(
const
QString &value )
const override
;
58
};
59
61
62
#endif
// QGSSQLITEEXPRESSIONCOMPILER_H
QgsSqlExpressionCompiler
Generic expression compiler for translation to provider specific SQL WHERE clauses.
Definition
qgssqlexpressioncompiler.h:41
QgsSqlExpressionCompiler::compileNode
virtual Result compileNode(const QgsExpressionNode *node, QString &str)
Compiles an expression node and returns the result of the compilation.
Definition
qgssqlexpressioncompiler.cpp:94
QgsSqlExpressionCompiler::sqlArgumentsFromFunctionName
virtual QStringList sqlArgumentsFromFunctionName(const QString &fnName, const QStringList &fnArgs) const
Returns the Arguments for SQL function for the expression function.
Definition
qgssqlexpressioncompiler.cpp:526
QgsSqlExpressionCompiler::quotedValue
virtual QString quotedValue(const QVariant &value, bool &ok)
Returns a quoted attribute value, in the format expected by the provider.
Definition
qgssqlexpressioncompiler.cpp:66
QgsSqlExpressionCompiler::castToText
virtual QString castToText(const QString &value) const
Casts a value to a text result.
Definition
qgssqlexpressioncompiler.cpp:538
QgsSqlExpressionCompiler::castToInt
virtual QString castToInt(const QString &value) const
Casts a value to a integer result.
Definition
qgssqlexpressioncompiler.cpp:543
QgsSqlExpressionCompiler::quotedIdentifier
virtual QString quotedIdentifier(const QString &identifier)
Returns a quoted column identifier, in the format expected by the provider.
Definition
qgssqlexpressioncompiler.cpp:58
QgsSqlExpressionCompiler::sqlFunctionFromFunctionName
virtual QString sqlFunctionFromFunctionName(const QString &fnName) const
Returns the SQL function for the expression function.
Definition
qgssqlexpressioncompiler.cpp:520
QgsSqlExpressionCompiler::castToReal
virtual QString castToReal(const QString &value) const
Casts a value to a real result.
Definition
qgssqlexpressioncompiler.cpp:532
qgssqlexpressioncompiler.h
Generated on
for QGIS API Documentation by
1.17.0