QGIS API Documentation
2.14.0-Essen
|
Defines a relation between matching fields of the two involved tables of a relation. More...
#include <qgsrelation.h>
Public Member Functions | |
FieldPair () | |
Default constructor: NULL strings. More... | |
FieldPair (const QString &referencingField, const QString &referencedField) | |
Constructor which takes two fields. More... | |
QString | referencedField () const |
Get the name of the referenced field. More... | |
QString | referencingField () const |
Get the name of the referencing field. More... | |
Public Member Functions inherited from QPair< QString, QString > | |
QPair () | |
QPair (const T1 &value1, const T2 &value2) | |
QPair< T1, T2 > & | operator= (const QPair< T1, T2 > &other) |
Additional Inherited Members | |
Public Attributes inherited from QPair< QString, QString > | |
typedef | first_type |
typedef | second_type |
Defines a relation between matching fields of the two involved tables of a relation.
Often, a relation is only defined by just one FieldPair with the name of the foreign key column of the referencing table as first element and the name of the primary key column of the referenced table as the second element.
Definition at line 38 of file qgsrelation.h.
|
inline |
Default constructor: NULL strings.
Definition at line 42 of file qgsrelation.h.
|
inline |
Constructor which takes two fields.
Definition at line 46 of file qgsrelation.h.
|
inline |
Get the name of the referenced field.
Definition at line 52 of file qgsrelation.h.
|
inline |
Get the name of the referencing field.
Definition at line 50 of file qgsrelation.h.