23 #include "wxgis/datasource/dataset.h"
24 #include "wxgis/datasource/cursor.h"
25 #include "wxgis/datasource/filter.h"
26 #include "wxgis/datasource/spatialtree.h"
27 #include "wxgis/core/pointer.h"
44 wxGISTable(
const CPLString &sPath,
int nSubType, OGRLayer* poLayer = NULL, OGRCompatibleDataSource* poDS = NULL);
47 virtual wxString GetName(
void)
const;
48 virtual void Close(
void);
50 virtual bool Open(
bool bUpdate =
true,
bool bShared =
true);
51 virtual bool Open(
int iLayer = 0,
bool bUpdate =
true,
bool bShared =
true,
bool bCache =
true,
ITrackCancel*
const pTrackCancel = NULL);
52 virtual size_t GetSubsetsCount(
void)
const;
54 virtual wxGISDataset* GetSubset(
const wxString & sSubsetName);
56 virtual char **GetFileList();
57 virtual void Cache(
ITrackCancel*
const pTrackCancel = NULL);
59 virtual size_t GetFeatureCount(
bool bForce =
false,
ITrackCancel*
const pTrackCancel = NULL);
60 virtual bool CanDeleteFeature(
void)
const;
61 virtual OGRErr DeleteFeature(
long nFID);
65 virtual OGRErr CommitTransaction(
void);
66 virtual OGRErr StartTransaction(
void);
67 virtual OGRErr RollbackTransaction(
void);
69 virtual bool CanDeleteField(
void)
const;
70 virtual OGRErr DeleteField(
int nIndex);
72 virtual void Reset(
void);
76 virtual wxString GetFIDColumn(
void)
const;
78 virtual wxFontEncoding GetEncoding(
void)
const;
79 virtual void SetEncoding(
const wxFontEncoding &oEncoding);
80 virtual bool HasFID(
void)
const {
return m_bHasFID;};
81 virtual bool HasFilter(
void)
const {
return m_bHasFilter; };
82 virtual wxArrayString GetFieldNames(
void)
const;
83 virtual wxString GetFieldName(
int nIndex)
const;
86 virtual OGRErr SetFilter(
const wxGISQueryFilter &QFilter = wxGISNullQueryFilter);
87 virtual OGRErr SetIgnoredFields(
const wxArrayString &saIgnoredFields);
88 virtual OGRCompatibleDataSource*
const GetDataSourceRef(
void)
const {
return m_poDS;};
89 virtual OGRLayer*
const GetLayerRef(
int iLayer = 0)
const {
return m_poLayer;};
90 virtual OGRFeatureDefn*
const GetDefinition(
void);
91 virtual OGRFeatureDefn*
const GetDefinition(
void)
const;
93 virtual void SetInternalValues(
void);
94 virtual bool IsContainer()
const;
96 OGRCompatibleDataSource* m_poDS;
99 wxFontEncoding m_Encoding;
100 bool m_bRecodeToSystem;
102 long m_nFeatureCount, m_nCurrentFID;
103 bool m_bOLCStringsAsUTF8;
104 bool m_bOLCFastFeatureCount;
124 wxGISTableCached(
const CPLString &sPath,
int nSubType, OGRLayer* poLayer = NULL, OGRCompatibleDataSource* poDS = NULL);
127 virtual void Close(
void);
129 virtual void Reset(
void);
134 virtual void Cache(
ITrackCancel*
const pTrackCancel = NULL);
135 virtual bool IsCaching(
void)
const;
137 virtual size_t GetFeatureCount(
bool bForce =
false,
ITrackCancel*
const pTrackCancel = NULL);
138 virtual OGRErr DeleteFeature(
long nFID);
143 std::map<long, wxGISFeature> m_omFeatures;
159 wxGISTableQuery(
const CPLString &sPath,
int nSubType, OGRLayer* poLayer = NULL, OGRCompatibleDataSource* poDS = NULL);
161 virtual void Cache(
ITrackCancel*
const pTrackCancel = NULL);
162 virtual size_t GetFeatureCount(
bool bForce =
false,
ITrackCancel*
const pTrackCancel = NULL);
Attributes query filter.
Definition: filter.h:29
A TrackCancel interface class.
Definition: core.h:144
Definition: gdalinh.h:117
The class represents an array of OGRFeatures, received by some selection.
Definition: cursor.h:33
Definition: spatialtree.h:63