QGIS API Documentation  2.3.0-Master
 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>

Inheritance diagram for QgsRelation::FieldPair:
Inheritance graph
[legend]
Collaboration diagram for QgsRelation::FieldPair:
Collaboration graph
[legend]

Public Member Functions

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

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: