QGIS API Documentation  2.2.0-Valmiera
 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 primkary key column of the referenced table as the second element.

Definition at line 38 of file qgsrelation.h.

Constructor & Destructor Documentation

QgsRelation::FieldPair::FieldPair ( )
inline

Default constructor: NULL strings.

Definition at line 42 of file qgsrelation.h.

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

Constructor which takes two fields.

Definition at line 46 of file qgsrelation.h.

Member Function Documentation

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

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