Salome HOME
implementation of the strickler types (integer codes) for points
[modules/hydro.git] / src / HYDROPy / HYDROData_LandCoverMap.sip
index cd0ed5b8713d08b48da1641e5cd9668b51bbda1b..b20417de3d7b4b9dba31add8b0ac42aae5a1a260 100644 (file)
@@ -61,8 +61,26 @@ public:
     const QString& theFieldName, 
     const QStringList& theDBFValues,
     const QStringList& theStricklerTypes ) const;
+  bool ImportSHP( const QString& theFileName, const QList<int>& theIndices = QList<int>() );
+
+  bool ExportSHP( const QString& theFileName ) const;
 
-  bool ExportTelemac( const QString& theFileName, double theDeflection ) const;
+  bool ExportTelemac( const QString& theFileName, double theDeflection,
+                      HYDROData_StricklerTable theTable ) const
+  [bool( const QString&, double, const Handle_HYDROData_StricklerTable& )];
+  %MethodCode
+    Handle(HYDROData_StricklerTable) aRef =
+      Handle(HYDROData_StricklerTable)::DownCast( createHandle( a2 ) );
+    if ( !aRef.IsNull() )
+    {
+      Py_BEGIN_ALLOW_THREADS
+         QString messStat;
+      sipRes = sipSelfWasArg ? sipCpp->HYDROData_LandCoverMap::ExportTelemac( *a0, a1, aRef, messStat ):
+                               sipCpp->ExportTelemac( *a0, a1, aRef, messStat );
+      Py_END_ALLOW_THREADS
+    }
+  %End
 
   bool Add( HYDROData_Object theObject, const QString& theType )
   [bool ( const Handle_HYDROData_Object&, const QString& )];