QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
QgsRelation::FieldPair Class Reference

Defines a relation between matchin fields of the two involved tables of a relation. More...

#include <qgsrelation.h>

Public Member Functions

 FieldPair ()
 Default constructor: NULL strings.
 FieldPair (QString referencingField, QString referencedField)
 Constructor which takes two fields.
const QString & referencingField () const
 Get the name of the referencing field.
const QString & referencedField () const
 Get the name of the referenced field.

Detailed Description

Defines a relation between matchin 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.

Constructor & Destructor Documentation

QgsRelation::FieldPair::FieldPair ( )
inline

Default constructor: NULL strings.

QgsRelation::FieldPair::FieldPair ( QString  referencingField,
QString  referencedField 
)
inline

Constructor which takes two fields.

Member Function Documentation

const QString& QgsRelation::FieldPair::referencedField ( ) const
inline

Get the name of the referenced field.

const QString& QgsRelation::FieldPair::referencingField ( ) const
inline

Get the name of the referencing field.


The documentation for this class was generated from the following file: