- * \return \c true if file has been successfully read
- */
- static bool ImportFromFile( HYDROData_Document theDoc,
- const QString& theFileName )
- [bool ( const Handle_HYDROData_Document&,
- const TCollection_AsciiString& )];
+ * \return \c number of successfully imported profiles
+ */
+ static int ImportFromFile( HYDROData_Document theDoc,
+ const TCollection_AsciiString& theFileName,
+ NCollection_Sequence<int>& theBadProfilesIds )
+ [int ( const Handle_HYDROData_Document&,
+ const TCollection_AsciiString&,
+ NCollection_Sequence<int>& )];
+ %MethodCode
+ Py_BEGIN_ALLOW_THREADS
+ sipRes = HYDROData_Profile::ImportFromFile( a0, *a1, *a2 );
+ Py_END_ALLOW_THREADS
+ %End