Salome HOME
Bug #168: filter for invalid polyline.
[modules/hydro.git] / src / HYDROPy / HYDROData_Document.sip
index 5b2e2e19bbee48164bed296a7f38840d6d88f159..6aeddf8904d4232e2341258c9fa69ac951452742 100644 (file)
@@ -275,6 +275,24 @@ public:
     
   %End
 
+  HYDROData_Entity FindObjectByName( const QString&   theName,
+                                     const ObjectKind theKind = KIND_UNKNOWN ) 
+  [Handle_HYDROData_Entity (const QString&, const ObjectKind)] ;
+  %MethodCode
+
+    Handle(HYDROData_Entity) anObject;
+    Py_BEGIN_ALLOW_THREADS
+    anObject =  sipSelfWasArg ? sipCpp->HYDROData_Document::FindObjectByName( *a0, a1 ) :
+                                sipCpp->FindObjectByName( *a0, a1 );
+    Py_END_ALLOW_THREADS
+
+    sipRes = createPointer( anObject );
+    
+  %End
+
+  HYDROData_SequenceOfObjects FindObjectsByNames( const QStringList& theNames,
+                                                  const ObjectKind   theKind = KIND_UNKNOWN );
+
 protected:
 
   //! Creates new document: private because "Document" method must be used instead of direct creation.