QGIS API Documentation 3.99.0-Master (0c964c3d988)
Loading...
Searching...
No Matches
qgspolymorphicrelation_p.h
Go to the documentation of this file.
1/***************************************************************************
2 qgspolymorphicrelation_p.h
3 --------------------------
4 begin : December 2020
5 copyright : (C) 2020 Ivan Ivanov
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#ifndef QGSPOLYMORPHICRELATION_P_H
18#define QGSPOLYMORPHICRELATION_P_H
19
20
22
23//
24// W A R N I N G
25// -------------
26//
27// This file is not part of the QGIS API. It exists purely as an
28// implementation detail. This header file may change from version to
29// version without notice, or even be removed.
30//
31
32#include "qgis.h"
33#include "qgsrelation.h"
34
35#include <QPointer>
36#include <QSharedData>
37
38#define SIP_NO_FILE
39
40class QgsVectorLayer;
41
42class QgsPolymorphicRelationPrivate : public QSharedData
43{
44 public:
45 QgsPolymorphicRelationPrivate() = default;
46
48 QString mRelationId;
50 QString mRelationName;
52 QString mReferencingLayerId;
54 QPointer<QgsVectorLayer> mReferencingLayer;
56 QString mReferencedLayerField;
58 QString mReferencedLayerExpression;
60 QStringList mReferencedLayerIds;
61
68 QList< QgsRelation::FieldPair > mFieldPairs;
69
71 QMap<QString, QgsVectorLayer *> mReferencedLayersMap;
72
75
77 bool mValid = false;
78};
79
81
82#endif // QGSPOLYMORPHICRELATION_P_H
RelationshipStrength
Relationship strength.
Definition qgis.h:4514
@ Association
Loose relation, related elements are not part of the parent and a parent copy will not copy any child...
Definition qgis.h:4515
Represents a vector layer which manages a vector based dataset.