QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
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#define SIP_NO_FILE
21
23
24//
25// W A R N I N G
26// -------------
27//
28// This file is not part of the QGIS API. It exists purely as an
29// implementation detail. This header file may change from version to
30// version without notice, or even be removed.
31//
32
33#include "qgis.h"
34#include "qgsrelation.h"
35
36#include <QSharedData>
37#include <QPointer>
38
39class QgsVectorLayer;
40
41class QgsPolymorphicRelationPrivate : public QSharedData
42{
43 public:
44 QgsPolymorphicRelationPrivate() = default;
45
47 QString mRelationId;
49 QString mRelationName;
51 QString mReferencingLayerId;
53 QPointer<QgsVectorLayer> mReferencingLayer;
55 QString mReferencedLayerField;
57 QString mReferencedLayerExpression;
59 QStringList mReferencedLayerIds;
60
67 QList< QgsRelation::FieldPair > mFieldPairs;
68
70 QMap<QString, QgsVectorLayer *> mReferencedLayersMap;
71
74
76 bool mValid = false;
77};
78
80
81#endif // QGSPOLYMORPHICRELATION_P_H
RelationshipStrength
Relationship strength.
Definition: qgis.h:3645
@ Association
Loose relation, related elements are not part of the parent and a parent copy will not copy any child...
Represents a vector layer which manages a vector based data sets.