|
Quantum GIS API Documentation
master-4435c4f
|
00001 /*************************************************************************** 00002 QgsAttributeTableIdColumnPair.h - Helper class for attribute tables 00003 ------------------- 00004 date : Feb 2009 00005 copyright : Vita Cizek 00006 email : weetya (at) gmail.com 00007 00008 *************************************************************************** 00009 * * 00010 * This program is free software; you can redistribute it and/or modify * 00011 * it under the terms of the GNU General Public License as published by * 00012 * the Free Software Foundation; either version 2 of the License, or * 00013 * (at your option) any later version. * 00014 * * 00015 ***************************************************************************/ 00016 00017 #ifndef QGSATTRIBUTETABKEIDCOLUMNPAIR_H 00018 #define QGSATTRIBUTETABKEIDCOLUMNPAIR_H 00019 00020 #include <QVariant> 00021 #include "qgsfeature.h" 00022 00023 class QgsAttributeTableIdColumnPair 00024 { 00025 QgsFeatureId mId; 00026 QVariant mItem; 00027 00028 public: 00029 QgsAttributeTableIdColumnPair( QgsFeatureId anId, QVariant anItem ) : mId( anId ), mItem( anItem ) {} 00034 bool operator<( const QgsAttributeTableIdColumnPair &b ) const; 00035 QgsFeatureId id() { return mId; } 00036 }; 00037 00038 #endif