From 8cd3e64e3386b0048c76799f8aa71d760f4ef5db Mon Sep 17 00:00:00 2001 From: asl Date: Mon, 16 Nov 2015 10:07:55 +0300 Subject: [PATCH] patch for export telemac wrapping for Python --- src/HYDROPy/HYDROData_LandCoverMap.sip | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/HYDROPy/HYDROData_LandCoverMap.sip b/src/HYDROPy/HYDROData_LandCoverMap.sip index 73e1c9d5..a196a378 100644 --- a/src/HYDROPy/HYDROData_LandCoverMap.sip +++ b/src/HYDROPy/HYDROData_LandCoverMap.sip @@ -62,7 +62,20 @@ public: const QStringList& theDBFValues, const QStringList& theStricklerTypes ) 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 + sipRes = sipSelfWasArg ? sipCpp->HYDROData_LandCoverMap::ExportTelemac( *a0, a1, aRef ): + sipCpp->ExportTelemac( *a0, a1, aRef ); + Py_END_ALLOW_THREADS + } + %End bool Add( HYDROData_Object theObject, const QString& theType ) [bool ( const Handle_HYDROData_Object&, const QString& )]; -- 2.39.2