ToolMap
Loading...
Searching...
No Matches
tmImportCSV Class Reference
Inheritance diagram for tmImportCSV:
tmImport

Public Member Functions

virtual bool Open (const wxFileName &filename)
 
virtual bool Import (DataBaseTM *database, PrjDefMemManage *prj, wxProgressDialog *progress=nullptr)
 
virtual bool GetExistingAttributeValues (const wxString &attName, wxArrayString &values)
 
virtual bool IsOk ()
 
void ListFields ()
 
wxArrayString GetFieldsList ()
 
void GuessXYfields ()
 
virtual bool GetFieldNames (wxArrayString &Fields)
 
int GetColumnX ()
 
int GetColumnY ()
 
void SetXYColumn (int x, int y)
 
virtual wxArrayInt GetTargetSupported ()
 
- Public Member Functions inherited from tmImport
const wxFileName GetFileName () const
 
const tmImportFileType GetFileType () const
 
const TM_GIS_SPATIAL_TYPES GetGeometryType () const
 
const long GetFeatureCount () const
 
const int GetFieldCount () const
 
const TOC_GENERIC_NAME GetTarget () const
 
void SetTarget (TOC_GENERIC_NAME value)
 
virtual wxArrayString GetTargetSupportedName ()
 
void SetLayerName (const wxString &value)
 
wxString GetLayerName ()
 
void SetFieldKind (const wxString &value)
 
wxString GetFieldKind ()
 
void SkipObjectKind (const wxString &fileKind)
 
void AddObjectKindMatch (const wxString &fileKind, const wxString &dbKind)
 
void ClearObjectKindMatches ()
 
void AddAttributeMatch (const wxString &fileAttribute, const wxString &dbAttribute, PRJDEF_FIELD_TYPE type)
 
void ClearAttributeMatches ()
 
void AddEnumerationMatch (const wxString &attributeName, const wxString &fileEnum, const wxString &dbEnum)
 
void ClearEnumerationMatches ()
 
int GetAttributesMatchesCount () const
 
bool AttributeIsEnum (int index) const
 
wxString GetAttributeNameInDB (int index) const
 
wxString GetAttributeNameInFile (int index) const
 
bool HasEnumAttributes () const
 

Additional Inherited Members

- Protected Member Functions inherited from tmImport
bool ShouldSkipObjectKind (const wxArrayString &fileValues)
 
bool SetObjectKind (DataBaseTM *database, PrjDefMemManage *prj, const wxArrayString &fileValues, const wxArrayLong &oids)
 
bool SetAttributes (DataBaseTM *database, PrjDefMemManage *prj, const wxArrayString &fileValues, wxArrayLong &oids)
 
- Protected Attributes inherited from tmImport
wxFileName m_FileName
 
tmImportFileType m_FileType
 
TM_GIS_SPATIAL_TYPES m_GeometryType
 
long m_FeatureCount
 
int m_FieldsCount
 
TOC_GENERIC_NAME m_ImportTarget
 
wxString m_LayerName
 
wxString m_FieldKind
 
wxArrayString m_SkipKinds
 
wxArrayString m_FileKinds
 
wxArrayString m_DbKinds
 
wxArrayString m_FileAttributes
 
wxArrayString m_DbAttributes
 
wxArrayInt m_AttributeTypes
 
wxArrayString m_FileEnumsAttName
 
wxArrayString m_FileEnums
 
wxArrayString m_DbEnums
 

Member Function Documentation

◆ GetExistingAttributeValues()

bool tmImportCSV::GetExistingAttributeValues ( const wxString &  attName,
wxArrayString &  values 
)
virtual

Reimplemented from tmImport.

◆ GetFieldNames()

bool tmImportCSV::GetFieldNames ( wxArrayString &  Fields)
virtual

Reimplemented from tmImport.

◆ GetTargetSupported()

wxArrayInt tmImportCSV::GetTargetSupported ( )
virtual

Reimplemented from tmImport.

◆ Import()

bool tmImportCSV::Import ( DataBaseTM database,
PrjDefMemManage prj,
wxProgressDialog *  progress = nullptr 
)
virtual

Reimplemented from tmImport.

◆ IsOk()

bool tmImportCSV::IsOk ( )
virtual

Reimplemented from tmImport.

◆ Open()

bool tmImportCSV::Open ( const wxFileName &  filename)
virtual

Reimplemented from tmImport.


The documentation for this class was generated from the following files: