QGIS API Documentation
4.3.0-Master (52380286b7c)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
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
6
email : ivan@opengis.ch
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
40
class
QgsVectorLayer
;
41
42
class
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
74
Qgis::RelationshipStrength
mRelationStrength =
Qgis::RelationshipStrength::Association
;
75
77
bool
mValid =
false
;
78
};
79
81
82
#endif
// QGSPOLYMORPHICRELATION_P_H
Qgis::RelationshipStrength
RelationshipStrength
Relationship strength.
Definition
qgis.h:4917
Qgis::RelationshipStrength::Association
@ Association
Loose relation, related elements are not part of the parent and a parent copy will not copy any child...
Definition
qgis.h:4918
QgsVectorLayer
Represents a vector layer which manages a vector based dataset.
Definition
qgsvectorlayer.h:414
qgis.h
qgsrelation.h
Generated on
for QGIS API Documentation by
1.17.0