QGIS API Documentation  3.14.0-Pi (9f7028fd23)
qgsserverfeatureid.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsserverfeatureid.h
3  -----------------------
4  begin : May 17, 2019
5  copyright : (C) 2019 by RenĂ©-Luc DHONT
6  email : rldhont at 3liz dot com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef QGSSERVERFEATUREID_H
19 #define QGSSERVERFEATUREID_H
20 
21 #define SIP_NO_FILE
22 
23 #include <QString>
24 #include <QHash>
25 
26 #include "qgis_server.h"
27 #include "qgsfield.h"
28 
30 class QgsFeature;
31 class QgsFeatureRequest;
32 
33 #ifdef SIP_RUN
34 % ModuleHeaderCode
35 #include "qgsserverfeatureid.h"
36 % End
37 #endif
38 
39 
47 {
48 
56  SERVER_EXPORT QString getServerFid( const QgsFeature &feature, const QgsAttributeList &pkAttributes );
57 
66  SERVER_EXPORT QgsFeatureRequest updateFeatureRequestFromServerFids( QgsFeatureRequest &featureRequest, const QStringList &serverFids, const QgsVectorDataProvider *provider );
67 
75  SERVER_EXPORT QString getExpressionFromServerFid( const QString &serverFid, const QgsVectorDataProvider *provider );
76 
82  SERVER_EXPORT QString pkSeparator();
83 
84 };
85 
86 #endif
QgsServerFeatureId::getExpressionFromServerFid
SERVER_EXPORT QString getExpressionFromServerFid(const QString &serverFid, const QgsVectorDataProvider *provider)
Returns the expression feature id based on primary keys.
Definition: qgsserverfeatureid.cpp:84
qgsserverfeatureid.h
QgsServerFeatureId::pkSeparator
SERVER_EXPORT QString pkSeparator()
Returns the primary keys separator.
Definition: qgsserverfeatureid.cpp:112
QgsServerFeatureId::getServerFid
SERVER_EXPORT QString getServerFid(const QgsFeature &feature, const QgsAttributeList &pkAttributes)
Returns the feature id based on primary keys.
Definition: qgsserverfeatureid.cpp:24
QgsAttributeList
QList< int > QgsAttributeList
Definition: qgsfield.h:26
QgsFeatureRequest
Definition: qgsfeaturerequest.h:75
QgsServerFeatureId::updateFeatureRequestFromServerFids
SERVER_EXPORT QgsFeatureRequest updateFeatureRequestFromServerFids(QgsFeatureRequest &featureRequest, const QStringList &serverFids, const QgsVectorDataProvider *provider)
Returns the feature request based on feature ids build with primary keys.
Definition: qgsserverfeatureid.cpp:40
qgsfield.h
QgsVectorDataProvider
Definition: qgsvectordataprovider.h:58
QgsFeature
Definition: qgsfeature.h:55
QgsServerFeatureId
Definition: qgsserverfeatureid.h:46