X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROPy%2FHYDROData_Profile.sip;h=d94a1c9d9480df897513e8fdd544f52b65b36478;hb=7a4d799258d85afe105c29c1c25ac2789b61fe84;hp=e25057b4a69038d6925c5aba701de423e21031a7;hpb=697a6aa753b5cca692ca982a10662a674c34658a;p=modules%2Fhydro.git diff --git a/src/HYDROPy/HYDROData_Profile.sip b/src/HYDROPy/HYDROData_Profile.sip index e25057b4..d94a1c9d 100644 --- a/src/HYDROPy/HYDROData_Profile.sip +++ b/src/HYDROPy/HYDROData_Profile.sip @@ -175,24 +175,18 @@ public: * \param theFileName the path to file * \return \c number of successfully imported profiles */ - /*static int ImportFromFile( HYDROData_Document theDoc, + static int ImportFromFile( const HYDROData_Document theDoc, const TCollection_AsciiString& theFileName, NCollection_Sequence& theBadProfilesIds ) - [int ImportFromFile( const Handle(HYDROData_Document)& , - const TCollection_AsciiString& , - NCollection_Sequence& )]; - MethodCode - Handle(HYDROData_Document) aRef = - Handle(HYDROData_Document)::DownCast( createHandle( a0 ) ); - if ( !aRef.IsNull() ) - { - Py_BEGIN_ALLOW_THREADS - sipRes = sipSelfWasArg ? sipCpp->HYDROData_Profile::ImportFromFile( aRef, a1, a2 ): - sipCpp->ImportFromFile( aRef, a1, a2 ); - Py_END_ALLOW_THREADS - } - End -*/ + [int ( const Handle_HYDROData_Document& , + const TCollection_AsciiString& , + NCollection_Sequence& )]; + %MethodCode + Py_BEGIN_ALLOW_THREADS + sipRes = HYDROData_Profile::ImportFromFile( a0, *a1, a2 ); + Py_END_ALLOW_THREADS + %End + /** * Imports Profile data from file. * \param theFileName the path to file