Ilwis-Objects  1.0
GIS and Remote Sensing framework for data access and processing
 All Classes Functions Enumerations Pages
columndefinition.h
1 #ifndef COLUMN_H
2 #define COLUMN_H
3 
4 namespace Ilwis {
11 class KERNELSHARED_EXPORT ColumnDefinition : public Identity
12 {
13 public:
18 
28  ColumnDefinition(const ColumnDefinition& def, quint32 index);
29 
39  ColumnDefinition(const QString& name, const DataDefinition& def, quint64 colindex);
40 
49  ColumnDefinition(const QString& nm, const IDomain &dom, quint64 colindex=i64UNDEF);
50 
58  bool isValid() const;
59 
65  QString type() const;
66 
72  const DataDefinition &datadef() const;
73 
79  DataDefinition &datadef();
80 
85  bool isMultiple() const;
86 
91  void multiple(bool yesno);
92 
99  void columnindex(quint64 idx);
100 
106  quint64 columnindex() const;
107 
113  bool isChanged() const;
114 
120  void changed(bool yesno);
121 private:
122  DataDefinition _datadef;
123  bool _multiple;
124  bool _changed;
125 
126 };
127 
128 KERNELSHARED_EXPORT bool operator==(const ColumnDefinition& def1, const ColumnDefinition& def2);
129 KERNELSHARED_EXPORT bool operator!=(const ColumnDefinition& def1, const ColumnDefinition& def2);
130 }
131 
132 #endif // COLUMN_H