QGIS/python/server/auto_generated/qgsserverfeatureid.sip.in
Nyall Dawson c2e294c3fa Use class with static public methods instead of namespace
Namespaces don't work well with sip, eg losing the class docstrings.
2025-03-29 07:55:27 +10:00

80 lines
2.6 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgsserverfeatureid.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsServerFeatureId
{
%Docstring(signature="appended")
Contains utility functions for using primary keys for feature IDs.
.. versionadded:: 3.4.9
%End
%TypeHeaderCode
#include "qgsserverfeatureid.h"
%End
public:
static QString getServerFid( const QgsFeature &feature, const QgsAttributeList &pkAttributes );
%Docstring
Returns the feature id based on primary keys.
:param feature: the feature
:param pkAttributes: the primary keys list
:return: the feature id based on primary keys
.. versionadded:: 3.4.9
%End
static QgsFeatureRequest updateFeatureRequestFromServerFids( QgsFeatureRequest &featureRequest, const QStringList &serverFids, const QgsVectorDataProvider *provider );
%Docstring
Returns the feature request based on feature ids build with primary keys.
:param featureRequest: the feature request to update
:param serverFids: the feature ids build with QgsServerFeatureId.getServerFid
:param provider: the vector layer provider to provide fields and primary keys list
:return: the feature request updated
.. versionadded:: 3.4.9
%End
static QString getExpressionFromServerFid( const QString &serverFid, const QgsVectorDataProvider *provider );
%Docstring
Returns the expression feature id based on primary keys.
:param serverFid: the feature id build with primary keys
:param provider: the vector layer provider to provide fields and primary keys list
:return: the feature id based on primary keys
.. versionadded:: 3.4.9
%End
static QString pkSeparator();
%Docstring
Returns the primary keys separator
:return: @@ the primary keys separator
.. versionadded:: 3.4.9
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgsserverfeatureid.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/