41 wxFileName m_FileName;
42 tmImportFileType m_FileType;
43 TM_GIS_SPATIAL_TYPES m_GeometryType;
46 TOC_GENERIC_NAME m_ImportTarget;
49 wxArrayString m_SkipKinds;
50 wxArrayString m_FileKinds;
51 wxArrayString m_DbKinds;
52 wxArrayString m_FileAttributes;
53 wxArrayString m_DbAttributes;
54 wxArrayInt m_AttributeTypes;
55 wxArrayString m_FileEnumsAttName;
56 wxArrayString m_FileEnums;
57 wxArrayString m_DbEnums;
59 bool ShouldSkipObjectKind(
const wxArrayString& fileValues);
62 const wxArrayLong& oids);
71 virtual bool Open(
const wxFileName& filename);
79 virtual bool GetExistingAttributeValues(
const wxString& attName, wxArrayString& values) {
83 inline const wxFileName GetFileName()
const;
85 inline const tmImportFileType GetFileType()
const;
87 inline const TM_GIS_SPATIAL_TYPES GetGeometryType()
const;
89 inline const long GetFeatureCount()
const;
91 inline const int GetFieldCount()
const;
93 virtual bool GetFieldNames(wxArrayString& Fields) {
97 inline const TOC_GENERIC_NAME GetTarget()
const;
99 void SetTarget(TOC_GENERIC_NAME value);
101 virtual wxArrayInt GetTargetSupported() {
105 virtual wxArrayString GetTargetSupportedName();
107 void SetLayerName(
const wxString& value);
109 wxString GetLayerName();
111 void SetFieldKind(
const wxString& value);
113 wxString GetFieldKind();
115 void SkipObjectKind(
const wxString& fileKind);
117 void AddObjectKindMatch(
const wxString& fileKind,
const wxString& dbKind);
119 void ClearObjectKindMatches();
121 void AddAttributeMatch(
const wxString& fileAttribute,
const wxString& dbAttribute, PRJDEF_FIELD_TYPE type);
123 void ClearAttributeMatches();
125 void AddEnumerationMatch(
const wxString& attributeName,
const wxString& fileEnum,
const wxString& dbEnum);
127 void ClearEnumerationMatches();
129 int GetAttributesMatchesCount()
const;
131 bool AttributeIsEnum(
int index)
const;
133 wxString GetAttributeNameInDB(
int index)
const;
135 wxString GetAttributeNameInFile(
int index)
const;
137 bool HasEnumAttributes()
const;