- int theInd, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities);
- HYDRODATA_EXPORT bool ImportPolylines(Handle(HYDROData_Document) theDocument, const QString& theFileName,
- NCollection_Sequence<Handle_HYDROData_Entity>& theEntities);
+ int theInd, NCollection_Sequence<Handle_HYDROData_Entity>& theEntities);
+
+ HYDRODATA_EXPORT int ImportPolylines(Handle(HYDROData_Document) theDocument, const QString& theFileName,
+ NCollection_Sequence<Handle_HYDROData_Entity>& theEntities, int& theShapeTypeOfFile);
+
+ HYDRODATA_EXPORT QString GetShapeTypeName(int theType);
+
+ //DBF I/O Methods
+ HYDRODATA_EXPORT bool CheckDBFFileExisting(const QString& theSHPFilePath, QString& thePathToDBFFile);
+ HYDRODATA_EXPORT bool DBF_OpenDBF(const QString& thePathToDBFFile);
+ HYDRODATA_EXPORT int DBF_GetNbFields();
+ HYDRODATA_EXPORT QStringList DBF_GetFieldList();
+ HYDRODATA_EXPORT void DBF_GetFieldTypeList(std::vector<DBF_FieldType>& FTVect);
+ HYDRODATA_EXPORT int DBF_GetNbRecords();
+ HYDRODATA_EXPORT void DBF_CloseDBF();
+ HYDRODATA_EXPORT void DBF_GetAttributeList(int theIndexOfField, std::vector<DBF_AttrValue>& theAttrV);
+ HYDRODATA_EXPORT bool DBF_WriteFieldAndValues(const QString& theFileName, const QString& theFieldName, DBF_FieldType theType, const std::vector<DBF_AttrValue>& theAttrV, bool bUseStrValue);
+