1 // Copyright (C) 2007-2015 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 // Author : Anthony Geay (CEA/DEN)
21 %module MEDCouplingClient
24 #include "MEDCouplingFieldDoubleClient.hxx"
25 #include "MEDCouplingFieldTemplateClient.hxx"
26 #include "MEDCouplingMultiFieldsClient.hxx"
27 #include "MEDCouplingFieldOverTimeClient.hxx"
28 #include "MEDCouplingUMeshClient.hxx"
29 #include "MEDCoupling1SGTUMeshClient.hxx"
30 #include "MEDCoupling1DGTUMeshClient.hxx"
31 #include "MEDCouplingExtrudedMeshClient.hxx"
32 #include "MEDCouplingCMeshClient.hxx"
33 #include "MEDCouplingIMeshClient.hxx"
34 #include "MEDCouplingCurveLinearMeshClient.hxx"
35 #include "DataArrayDoubleClient.hxx"
36 #include "DataArrayIntClient.hxx"
40 using namespace MEDCoupling;
43 %include "MEDCouplingCommon.i"
45 %newobject MEDCoupling::MEDCouplingFieldDoubleClient::New;
46 %newobject MEDCoupling::MEDCouplingFieldTemplateClient::New;
47 %newobject MEDCoupling::MEDCouplingUMeshClient::New;
48 %newobject MEDCoupling::MEDCoupling1SGTUMeshClient::New;
49 %newobject MEDCoupling::MEDCoupling1DGTUMeshClient::New;
50 %newobject MEDCoupling::MEDCouplingExtrudedMeshClient::New;
51 %newobject MEDCoupling::MEDCouplingCMeshClient::New;
52 %newobject MEDCoupling::MEDCouplingIMeshClient::New;
53 %newobject MEDCoupling::MEDCouplingCurveLinearMeshClient::New;
54 %newobject MEDCoupling::MEDCouplingMultiFieldsClient::New;
55 %newobject MEDCoupling::MEDCouplingFieldOverTimeClient::New;
56 %newobject MEDCoupling::DataArrayDoubleClient::New;
57 %newobject MEDCoupling::DataArrayIntClient::New;
64 class MEDCouplingFieldDoubleClient
69 static MEDCouplingFieldDouble *New(PyObject *fieldPtr) throw(INTERP_KERNEL::Exception)
71 PyObject* pdict=PyDict_New();
72 PyDict_SetItemString(pdict,"__builtins__",PyEval_GetBuiltins());
73 PyRun_String("import MEDCouplingCorbaServant_idl",Py_single_input,pdict, pdict);
74 PyRun_String("import CORBA",Py_single_input,pdict, pdict);
75 PyRun_String("orbTmp15634=CORBA.ORB_init([''])", Py_single_input,pdict, pdict);
76 PyObject *orbPython=PyDict_GetItemString(pdict,"orbTmp15634");
77 // Ask omniORBpy to transform SUPPORT (python Corba) ptr to IOR string
78 PyObject *iorField=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",fieldPtr);
80 throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCouplingFieldDoubleClient.New appears to differ from CORBA reference ! Expecting a FieldDouble CORBA reference !");
81 char *ior=PyString_AsString(iorField);
83 CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
84 CORBA::Object_var fieldPtrCpp=orb->string_to_object(ior);
85 SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_var fieldPtrCppC=SALOME_MED::MEDCouplingFieldDoubleCorbaInterface::_narrow(fieldPtrCpp);
86 if(CORBA::is_nil(fieldPtrCppC))
87 throw INTERP_KERNEL::Exception("error corba pointer is not a SALOME_MED.MEDCouplingFieldDoubleCorbaInterface_ptr !");
90 MEDCouplingFieldDouble *ret=MEDCouplingFieldDoubleClient::New(fieldPtrCppC);
96 class MEDCouplingFieldTemplateClient
101 static MEDCouplingFieldTemplate *New(PyObject *fieldPtr) throw(INTERP_KERNEL::Exception)
103 PyObject* pdict=PyDict_New();
104 PyDict_SetItemString(pdict,"__builtins__",PyEval_GetBuiltins());
105 PyRun_String("import MEDCouplingCorbaServant_idl",Py_single_input,pdict, pdict);
106 PyRun_String("import CORBA",Py_single_input,pdict, pdict);
107 PyRun_String("orbTmp15634=CORBA.ORB_init([''])", Py_single_input,pdict, pdict);
108 PyObject *orbPython=PyDict_GetItemString(pdict,"orbTmp15634");
109 // Ask omniORBpy to transform SUPPORT (python Corba) ptr to IOR string
110 PyObject *iorField=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",fieldPtr);
112 throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCouplingFieldTemplateClient.New appears to differ from CORBA reference ! Expecting a FieldTemplate CORBA reference !");
113 char *ior=PyString_AsString(iorField);
115 CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
116 CORBA::Object_var fieldPtrCpp=orb->string_to_object(ior);
117 SALOME_MED::MEDCouplingFieldTemplateCorbaInterface_var fieldPtrCppC=SALOME_MED::MEDCouplingFieldTemplateCorbaInterface::_narrow(fieldPtrCpp);
118 if(CORBA::is_nil(fieldPtrCppC))
119 throw INTERP_KERNEL::Exception("error corba pointer is not a SALOME_MED.MEDCouplingFieldTemplateCorbaInterface_ptr !");
122 MEDCouplingFieldTemplate *ret=MEDCouplingFieldTemplateClient::New(fieldPtrCppC);
128 class MEDCouplingMultiFieldsClient
133 static MEDCouplingMultiFields *New(PyObject *fieldPtr) throw(INTERP_KERNEL::Exception)
135 PyObject* pdict=PyDict_New();
136 PyDict_SetItemString(pdict,"__builtins__",PyEval_GetBuiltins());
137 PyRun_String("import MEDCouplingCorbaServant_idl",Py_single_input,pdict, pdict);
138 PyRun_String("import CORBA",Py_single_input,pdict, pdict);
139 PyRun_String("orbTmp15634=CORBA.ORB_init([''])", Py_single_input,pdict, pdict);
140 PyObject *orbPython=PyDict_GetItemString(pdict,"orbTmp15634");
141 // Ask omniORBpy to transform SUPPORT (python Corba) ptr to IOR string
142 PyObject *iorField=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",fieldPtr);
144 throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCouplingFieldTemplateClient.New appears to differ from CORBA reference ! Expecting a MultiFields CORBA reference !");
145 char *ior=PyString_AsString(iorField);
147 CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
148 CORBA::Object_var fieldPtrCpp=orb->string_to_object(ior);
149 SALOME_MED::MEDCouplingMultiFieldsCorbaInterface_var fieldPtrCppC=SALOME_MED::MEDCouplingMultiFieldsCorbaInterface::_narrow(fieldPtrCpp);
150 if(CORBA::is_nil(fieldPtrCppC))
151 throw INTERP_KERNEL::Exception("error corba pointer is not a SALOME_MED.MEDCouplingMultiFieldsCorbaInterface_ptr !");
154 MEDCouplingMultiFields *ret=MEDCouplingMultiFieldsClient::New(fieldPtrCppC);
160 class MEDCouplingFieldOverTimeClient : public MEDCouplingFieldOverTime
163 std::vector<double> getTimeSteps() const;
166 static MEDCouplingFieldOverTimeClient *New(PyObject *fieldPtr) throw(INTERP_KERNEL::Exception)
168 PyObject* pdict=PyDict_New();
169 PyDict_SetItemString(pdict,"__builtins__",PyEval_GetBuiltins());
170 PyRun_String("import MEDCouplingCorbaServant_idl",Py_single_input,pdict, pdict);
171 PyRun_String("import CORBA",Py_single_input,pdict, pdict);
172 PyRun_String("orbTmp15634=CORBA.ORB_init([''])", Py_single_input,pdict, pdict);
173 PyObject *orbPython=PyDict_GetItemString(pdict,"orbTmp15634");
174 // Ask omniORBpy to transform SUPPORT (python Corba) ptr to IOR string
175 PyObject *iorField=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",fieldPtr);
177 throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCouplingFieldOverTimeClient.New appears to differ from CORBA reference ! Expecting a FieldOverTime CORBA reference !");
178 char *ior=PyString_AsString(iorField);
180 CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
181 CORBA::Object_var fieldPtrCpp=orb->string_to_object(ior);
182 SALOME_MED::MEDCouplingFieldOverTimeCorbaInterface_var fieldPtrCppC=SALOME_MED::MEDCouplingFieldOverTimeCorbaInterface::_narrow(fieldPtrCpp);
183 if(CORBA::is_nil(fieldPtrCppC))
184 throw INTERP_KERNEL::Exception("error corba pointer is not a SALOME_MED.MEDCouplingFieldOverTimeCorbaInterface_ptr !");
187 MEDCouplingFieldOverTimeClient *ret=MEDCouplingFieldOverTimeClient::New(fieldPtrCppC);
193 class MEDCouplingMeshClient
198 static MEDCouplingMesh *New(PyObject *meshPtr) throw(INTERP_KERNEL::Exception)
200 PyObject* pdict=PyDict_New();
201 PyDict_SetItemString(pdict,"__builtins__",PyEval_GetBuiltins());
202 PyRun_String("import MEDCouplingCorbaServant_idl",Py_single_input,pdict, pdict);
203 PyRun_String("import CORBA",Py_single_input,pdict, pdict);
204 PyRun_String("orbTmp15634=CORBA.ORB_init([''])", Py_single_input,pdict, pdict);
205 PyObject *orbPython=PyDict_GetItemString(pdict,"orbTmp15634");
206 // Ask omniORBpy to transform SUPPORT (python Corba) ptr to IOR string
207 PyObject *iorMesh=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",meshPtr);
209 throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCouplingMeshClient.New appears to differ from CORBA reference ! Expecting a MeshCorbaInterface CORBA reference !");
210 char *ior=PyString_AsString(iorMesh);
212 CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
213 CORBA::Object_var meshPtrCpp=orb->string_to_object(ior);
214 SALOME_MED::MEDCouplingUMeshCorbaInterface_var meshPtrCppC1=SALOME_MED::MEDCouplingUMeshCorbaInterface::_narrow(meshPtrCpp);
215 if(!CORBA::is_nil(meshPtrCppC1))
219 return MEDCouplingUMeshClient::New(meshPtrCppC1);
221 SALOME_MED::MEDCouplingCMeshCorbaInterface_var meshPtrCppC2=SALOME_MED::MEDCouplingCMeshCorbaInterface::_narrow(meshPtrCpp);
222 if(!CORBA::is_nil(meshPtrCppC2))
226 return MEDCouplingCMeshClient::New(meshPtrCppC2);
228 SALOME_MED::MEDCouplingIMeshCorbaInterface_var meshPtrCppC7=SALOME_MED::MEDCouplingIMeshCorbaInterface::_narrow(meshPtrCpp);
229 if(!CORBA::is_nil(meshPtrCppC7))
233 return MEDCouplingIMeshClient::New(meshPtrCppC7);
235 SALOME_MED::MEDCouplingCurveLinearMeshCorbaInterface_var meshPtrCppC3=SALOME_MED::MEDCouplingCurveLinearMeshCorbaInterface::_narrow(meshPtrCpp);
236 if(!CORBA::is_nil(meshPtrCppC3))
240 return MEDCouplingCurveLinearMeshClient::New(meshPtrCppC3);
242 SALOME_MED::MEDCoupling1SGTUMeshCorbaInterface_var meshPtrCppC4=SALOME_MED::MEDCoupling1SGTUMeshCorbaInterface::_narrow(meshPtrCpp);
243 if(!CORBA::is_nil(meshPtrCppC4))
247 return MEDCoupling1SGTUMeshClient::New(meshPtrCppC4);
249 SALOME_MED::MEDCoupling1DGTUMeshCorbaInterface_var meshPtrCppC5=SALOME_MED::MEDCoupling1DGTUMeshCorbaInterface::_narrow(meshPtrCpp);
250 if(!CORBA::is_nil(meshPtrCppC5))
254 return MEDCoupling1DGTUMeshClient::New(meshPtrCppC5);
256 SALOME_MED::MEDCouplingExtrudedMeshCorbaInterface_var meshPtrCppC6=SALOME_MED::MEDCouplingExtrudedMeshCorbaInterface::_narrow(meshPtrCpp);
257 if(!CORBA::is_nil(meshPtrCppC6))
261 return MEDCouplingExtrudedMeshClient::New(meshPtrCppC6);
263 throw INTERP_KERNEL::Exception("Error input corba pointer is not a managed mesh type !");
268 class MEDCouplingUMeshClient
273 static MEDCouplingUMesh *New(PyObject *meshPtr) throw(INTERP_KERNEL::Exception)
275 PyObject* pdict=PyDict_New();
276 PyDict_SetItemString(pdict,"__builtins__",PyEval_GetBuiltins());
277 PyRun_String("import MEDCouplingCorbaServant_idl",Py_single_input,pdict, pdict);
278 PyRun_String("import CORBA",Py_single_input,pdict, pdict);
279 PyRun_String("orbTmp15634=CORBA.ORB_init([''])", Py_single_input,pdict, pdict);
280 PyObject *orbPython=PyDict_GetItemString(pdict,"orbTmp15634");
281 // Ask omniORBpy to transform SUPPORT (python Corba) ptr to IOR string
282 PyObject *iorMesh=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",meshPtr);
284 throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCouplingUMeshClient.New appears to differ from CORBA reference ! Expecting a UMeshCorbaInterface CORBA reference !");
285 char *ior=PyString_AsString(iorMesh);
287 CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
288 CORBA::Object_var meshPtrCpp=orb->string_to_object(ior);
289 SALOME_MED::MEDCouplingUMeshCorbaInterface_var meshPtrCppC=SALOME_MED::MEDCouplingUMeshCorbaInterface::_narrow(meshPtrCpp);
290 if(CORBA::is_nil(meshPtrCppC))
291 throw INTERP_KERNEL::Exception("error corba pointer is not a SALOME_MED.MEDCouplingUMeshInterface_ptr !");
294 MEDCouplingUMesh *ret=MEDCouplingUMeshClient::New(meshPtrCppC);
300 class MEDCoupling1SGTUMeshClient
305 static MEDCoupling1SGTUMesh *New(PyObject *meshPtr) throw(INTERP_KERNEL::Exception)
307 PyObject* pdict=PyDict_New();
308 PyDict_SetItemString(pdict,"__builtins__",PyEval_GetBuiltins());
309 PyRun_String("import MEDCouplingCorbaServant_idl",Py_single_input,pdict, pdict);
310 PyRun_String("import CORBA",Py_single_input,pdict, pdict);
311 PyRun_String("orbTmp15634=CORBA.ORB_init([''])", Py_single_input,pdict, pdict);
312 PyObject *orbPython=PyDict_GetItemString(pdict,"orbTmp15634");
313 // Ask omniORBpy to transform SUPPORT (python Corba) ptr to IOR string
314 PyObject *iorMesh=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",meshPtr);
316 throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCoupling1SGTUMeshClient.New appears to differ from CORBA reference ! Expecting a 1SGTUMeshCorbaInterface CORBA reference !");
317 char *ior=PyString_AsString(iorMesh);
319 CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
320 CORBA::Object_var meshPtrCpp=orb->string_to_object(ior);
321 SALOME_MED::MEDCoupling1SGTUMeshCorbaInterface_var meshPtrCppC=SALOME_MED::MEDCoupling1SGTUMeshCorbaInterface::_narrow(meshPtrCpp);
322 if(CORBA::is_nil(meshPtrCppC))
323 throw INTERP_KERNEL::Exception("error corba pointer is not a SALOME_MED.MEDCoupling1SGTUMeshInterface_ptr !");
326 MEDCoupling1SGTUMesh *ret=MEDCoupling1SGTUMeshClient::New(meshPtrCppC);
332 class MEDCoupling1DGTUMeshClient
337 static MEDCoupling1DGTUMesh *New(PyObject *meshPtr) throw(INTERP_KERNEL::Exception)
339 PyObject* pdict=PyDict_New();
340 PyDict_SetItemString(pdict,"__builtins__",PyEval_GetBuiltins());
341 PyRun_String("import MEDCouplingCorbaServant_idl",Py_single_input,pdict, pdict);
342 PyRun_String("import CORBA",Py_single_input,pdict, pdict);
343 PyRun_String("orbTmp15634=CORBA.ORB_init([''])", Py_single_input,pdict, pdict);
344 PyObject *orbPython=PyDict_GetItemString(pdict,"orbTmp15634");
345 // Ask omniORBpy to transform SUPPORT (python Corba) ptr to IOR string
346 PyObject *iorMesh=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",meshPtr);
348 throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCoupling1DGTUMeshClient.New appears to differ from CORBA reference ! Expecting a 1DGTUMeshCorbaInterface CORBA reference !");
349 char *ior=PyString_AsString(iorMesh);
351 CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
352 CORBA::Object_var meshPtrCpp=orb->string_to_object(ior);
353 SALOME_MED::MEDCoupling1DGTUMeshCorbaInterface_var meshPtrCppC=SALOME_MED::MEDCoupling1DGTUMeshCorbaInterface::_narrow(meshPtrCpp);
354 if(CORBA::is_nil(meshPtrCppC))
355 throw INTERP_KERNEL::Exception("error corba pointer is not a SALOME_MED.MEDCoupling1DGTUMeshInterface_ptr !");
358 MEDCoupling1DGTUMesh *ret=MEDCoupling1DGTUMeshClient::New(meshPtrCppC);
364 class MEDCouplingExtrudedMeshClient
369 static MEDCouplingExtrudedMesh *New(PyObject *meshPtr) throw(INTERP_KERNEL::Exception)
371 PyObject* pdict=PyDict_New();
372 PyDict_SetItemString(pdict,"__builtins__",PyEval_GetBuiltins());
373 PyRun_String("import MEDCouplingCorbaServant_idl",Py_single_input,pdict, pdict);
374 PyRun_String("import CORBA",Py_single_input,pdict, pdict);
375 PyRun_String("orbTmp15634=CORBA.ORB_init([''])", Py_single_input,pdict, pdict);
376 PyObject *orbPython=PyDict_GetItemString(pdict,"orbTmp15634");
377 // Ask omniORBpy to transform SUPPORT (python Corba) ptr to IOR string
378 PyObject *iorMesh=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",meshPtr);
380 throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCouplingExtrudedMeshClient.New appears to differ from CORBA reference ! Expecting an ExtrudedMeshCorbaInterface CORBA reference !");
381 char *ior=PyString_AsString(iorMesh);
383 CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
384 CORBA::Object_var meshPtrCpp=orb->string_to_object(ior);
385 SALOME_MED::MEDCouplingExtrudedMeshCorbaInterface_var meshPtrCppC=SALOME_MED::MEDCouplingExtrudedMeshCorbaInterface::_narrow(meshPtrCpp);
386 if(CORBA::is_nil(meshPtrCppC))
387 throw INTERP_KERNEL::Exception("error corba pointer is not a SALOME_MED.MEDCouplingExtrudedMeshInterface_ptr !");
390 MEDCouplingExtrudedMesh *ret=MEDCouplingExtrudedMeshClient::New(meshPtrCppC);
396 class MEDCouplingCMeshClient
401 static MEDCouplingCMesh *New(PyObject *meshPtr) throw(INTERP_KERNEL::Exception)
403 PyObject* pdict=PyDict_New();
404 PyDict_SetItemString(pdict,"__builtins__",PyEval_GetBuiltins());
405 PyRun_String("import MEDCouplingCorbaServant_idl",Py_single_input,pdict, pdict);
406 PyRun_String("import CORBA",Py_single_input,pdict, pdict);
407 PyRun_String("orbTmp15634=CORBA.ORB_init([''])", Py_single_input,pdict, pdict);
408 PyObject *orbPython=PyDict_GetItemString(pdict,"orbTmp15634");
409 // Ask omniORBpy to transform SUPPORT (python Corba) ptr to IOR string
410 PyObject *iorMesh=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",meshPtr);
412 throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCouplingCMeshClient.New appears to differ from CORBA reference ! Expecting a CMeshCorbaInterface CORBA reference !");
413 char *ior=PyString_AsString(iorMesh);
415 CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
416 CORBA::Object_var meshPtrCpp=orb->string_to_object(ior);
417 SALOME_MED::MEDCouplingCMeshCorbaInterface_var meshPtrCppC=SALOME_MED::MEDCouplingCMeshCorbaInterface::_narrow(meshPtrCpp);
418 if(CORBA::is_nil(meshPtrCppC))
419 throw INTERP_KERNEL::Exception("error corba pointer is not a SALOME_MED.MEDCouplingCMeshInterface_ptr !");
422 MEDCouplingCMesh *ret=MEDCouplingCMeshClient::New(meshPtrCppC);
428 class MEDCouplingIMeshClient
433 static MEDCouplingIMesh *New(PyObject *meshPtr) throw(INTERP_KERNEL::Exception)
435 PyObject* pdict=PyDict_New();
436 PyDict_SetItemString(pdict,"__builtins__",PyEval_GetBuiltins());
437 PyRun_String("import MEDCouplingCorbaServant_idl",Py_single_input,pdict, pdict);
438 PyRun_String("import CORBA",Py_single_input,pdict, pdict);
439 PyRun_String("orbTmp15634=CORBA.ORB_init([''])", Py_single_input,pdict, pdict);
440 PyObject *orbPython=PyDict_GetItemString(pdict,"orbTmp15634");
441 // Ask omniORBpy to transform SUPPORT (python Corba) ptr to IOR string
442 PyObject *iorMesh=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",meshPtr);
444 throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCouplingIMeshClient.New appears to differ from CORBA reference ! Expecting a IMeshCorbaInterface CORBA reference !");
445 char *ior=PyString_AsString(iorMesh);
447 CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
448 CORBA::Object_var meshPtrCpp=orb->string_to_object(ior);
449 SALOME_MED::MEDCouplingIMeshCorbaInterface_var meshPtrCppC=SALOME_MED::MEDCouplingIMeshCorbaInterface::_narrow(meshPtrCpp);
450 if(CORBA::is_nil(meshPtrCppC))
451 throw INTERP_KERNEL::Exception("error corba pointer is not a SALOME_MED.MEDCouplingIMeshInterface_ptr !");
454 MEDCouplingIMesh *ret=MEDCouplingIMeshClient::New(meshPtrCppC);
460 class MEDCouplingCurveLinearMeshClient
465 static MEDCouplingCurveLinearMesh *New(PyObject *meshPtr) throw(INTERP_KERNEL::Exception)
467 PyObject* pdict=PyDict_New();
468 PyDict_SetItemString(pdict,"__builtins__",PyEval_GetBuiltins());
469 PyRun_String("import MEDCouplingCorbaServant_idl",Py_single_input,pdict, pdict);
470 PyRun_String("import CORBA",Py_single_input,pdict, pdict);
471 PyRun_String("orbTmp15634=CORBA.ORB_init([''])", Py_single_input,pdict, pdict);
472 PyObject *orbPython=PyDict_GetItemString(pdict,"orbTmp15634");
473 // Ask omniORBpy to transform SUPPORT (python Corba) ptr to IOR string
474 PyObject *iorMesh=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",meshPtr);
476 throw INTERP_KERNEL::Exception("Error : the input parameter of MEDCouplingCurveLinearMeshClient.New appears to differ from CORBA reference ! Expecting a CurveLinearMeshCorbaInterface CORBA reference !");
477 char *ior=PyString_AsString(iorMesh);
479 CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
480 CORBA::Object_var meshPtrCpp=orb->string_to_object(ior);
481 SALOME_MED::MEDCouplingCurveLinearMeshCorbaInterface_var meshPtrCppC=SALOME_MED::MEDCouplingCurveLinearMeshCorbaInterface::_narrow(meshPtrCpp);
482 if(CORBA::is_nil(meshPtrCppC))
483 throw INTERP_KERNEL::Exception("error corba pointer is not a SALOME_MED.MEDCouplingCurveLinearMeshInterface_ptr !");
486 MEDCouplingCurveLinearMesh *ret=MEDCouplingCurveLinearMeshClient::New(meshPtrCppC);
492 class DataArrayDoubleClient
497 static DataArrayDouble *New(PyObject *meshPtr) throw(INTERP_KERNEL::Exception)
499 PyObject* pdict=PyDict_New();
500 PyDict_SetItemString(pdict,"__builtins__",PyEval_GetBuiltins());
501 PyRun_String("import MEDCouplingCorbaServant_idl",Py_single_input,pdict, pdict);
502 PyRun_String("import CORBA",Py_single_input,pdict, pdict);
503 PyRun_String("orbTmp15634=CORBA.ORB_init([''])", Py_single_input,pdict, pdict);
504 PyObject *orbPython=PyDict_GetItemString(pdict,"orbTmp15634");
505 // Ask omniORBpy to transform SUPPORT (python Corba) ptr to IOR string
506 PyObject *iorMesh=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",meshPtr);
508 throw INTERP_KERNEL::Exception("Error : the input parameter of DataArrayDoubleClient.New appears to differ from CORBA reference ! Expecting a DataArrayDoubleCorbaInterface CORBA reference !");
509 char *ior=PyString_AsString(iorMesh);
511 CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
512 CORBA::Object_var meshPtrCpp=orb->string_to_object(ior);
513 SALOME_MED::DataArrayDoubleCorbaInterface_var meshPtrCppC=SALOME_MED::DataArrayDoubleCorbaInterface::_narrow(meshPtrCpp);
514 if(CORBA::is_nil(meshPtrCppC))
515 throw INTERP_KERNEL::Exception("error corba pointer is not a SALOME_MED.DataArrayDoubleInterface_ptr ");
518 DataArrayDouble *ret=DataArrayDoubleClient::New(meshPtrCppC);
524 class DataArrayIntClient
529 static DataArrayInt *New(PyObject *meshPtr) throw(INTERP_KERNEL::Exception)
531 PyObject* pdict=PyDict_New();
532 PyDict_SetItemString(pdict,"__builtins__",PyEval_GetBuiltins());
533 PyRun_String("import MEDCouplingCorbaServant_idl",Py_single_input,pdict, pdict);
534 PyRun_String("import CORBA",Py_single_input,pdict, pdict);
535 PyRun_String("orbTmp15634=CORBA.ORB_init([''])", Py_single_input,pdict, pdict);
536 PyObject *orbPython=PyDict_GetItemString(pdict,"orbTmp15634");
537 // Ask omniORBpy to transform SUPPORT (python Corba) ptr to IOR string
538 PyObject *iorMesh=PyObject_CallMethod(orbPython,(char*)"object_to_string",(char*)"O",meshPtr);
540 throw INTERP_KERNEL::Exception("Error : the input parameter of DataArrayIntClient.New appears to differ from CORBA reference ! Expecting a DataArrayIntCorbaInterface CORBA reference !");
541 char *ior=PyString_AsString(iorMesh);
543 CORBA::ORB_var orb=CORBA::ORB_init(argc,0);
544 CORBA::Object_var meshPtrCpp=orb->string_to_object(ior);
545 SALOME_MED::DataArrayIntCorbaInterface_var meshPtrCppC=SALOME_MED::DataArrayIntCorbaInterface::_narrow(meshPtrCpp);
546 if(CORBA::is_nil(meshPtrCppC))
547 throw INTERP_KERNEL::Exception("error corba pointer is not a SALOME_MED.DataArrayIntInterface_ptr !");
550 DataArrayInt *ret=DataArrayIntClient::New(meshPtrCppC);
558 def MEDCouplingDataArrayDoublenew(cls,*args):
559 import _MEDCouplingClient
560 return _MEDCouplingClient.DataArrayDouble____new___(cls,args)
561 def MEDCouplingDataArrayDoubleIadd(self,*args):
562 import _MEDCouplingClient
563 return _MEDCouplingClient.DataArrayDouble____iadd___(self, self, *args)
564 def MEDCouplingDataArrayDoubleIsub(self,*args):
565 import _MEDCouplingClient
566 return _MEDCouplingClient.DataArrayDouble____isub___(self, self, *args)
567 def MEDCouplingDataArrayDoubleImul(self,*args):
568 import _MEDCouplingClient
569 return _MEDCouplingClient.DataArrayDouble____imul___(self, self, *args)
570 def MEDCouplingDataArrayDoubleIdiv(self,*args):
571 import _MEDCouplingClient
572 return _MEDCouplingClient.DataArrayDouble____idiv___(self, self, *args)
573 def MEDCouplingDataArrayDoubleIpow(self,*args):
574 import _MEDCouplingClient
575 return _MEDCouplingClient.DataArrayDouble____ipow___(self, self, *args)
576 def MEDCouplingFieldDoublenew(cls,*args):
577 import _MEDCouplingClient
578 return _MEDCouplingClient.MEDCouplingFieldDouble____new___(cls,args)
579 def MEDCouplingFieldDoubleIadd(self,*args):
580 import _MEDCouplingClient
581 return _MEDCouplingClient.MEDCouplingFieldDouble____iadd___(self, self, *args)
582 def MEDCouplingFieldDoubleIsub(self,*args):
583 import _MEDCouplingClient
584 return _MEDCouplingClient.MEDCouplingFieldDouble____isub___(self, self, *args)
585 def MEDCouplingFieldDoubleImul(self,*args):
586 import _MEDCouplingClient
587 return _MEDCouplingClient.MEDCouplingFieldDouble____imul___(self, self, *args)
588 def MEDCouplingFieldDoubleIdiv(self,*args):
589 import _MEDCouplingClient
590 return _MEDCouplingClient.MEDCouplingFieldDouble____idiv___(self, self, *args)
591 def MEDCouplingFieldDoubleIpow(self,*args):
592 import _MEDCouplingClient
593 return _MEDCouplingClient.MEDCouplingFieldDouble____ipow___(self, self, *args)
594 def MEDCouplingDataArrayIntnew(cls,*args):
595 import _MEDCouplingClient
596 return _MEDCouplingClient.DataArrayInt____new___(cls,args)
597 def MEDCouplingDataArrayIntIadd(self,*args):
598 import _MEDCouplingClient
599 return _MEDCouplingClient.DataArrayInt____iadd___(self, self, *args)
600 def MEDCouplingDataArrayIntIsub(self,*args):
601 import _MEDCouplingClient
602 return _MEDCouplingClient.DataArrayInt____isub___(self, self, *args)
603 def MEDCouplingDataArrayIntImul(self,*args):
604 import _MEDCouplingClient
605 return _MEDCouplingClient.DataArrayInt____imul___(self, self, *args)
606 def MEDCouplingDataArrayIntIdiv(self,*args):
607 import _MEDCouplingClient
608 return _MEDCouplingClient.DataArrayInt____idiv___(self, self, *args)
609 def MEDCouplingDataArrayIntImod(self,*args):
610 import _MEDCouplingClient
611 return _MEDCouplingClient.DataArrayInt____imod___(self, self, *args)
612 def MEDCouplingDataArrayIntIpow(self,*args):
613 import _MEDCouplingClient
614 return _MEDCouplingClient.DataArrayInt____ipow___(self, self, *args)
615 def MEDCouplingDataArrayDoubleTupleIadd(self,*args):
616 import _MEDCouplingClient
617 return _MEDCouplingClient.DataArrayDoubleTuple____iadd___(self, self, *args)
618 def MEDCouplingDataArrayDoubleTupleIsub(self,*args):
619 import _MEDCouplingClient
620 return _MEDCouplingClient.DataArrayDoubleTuple____isub___(self, self, *args)
621 def MEDCouplingDataArrayDoubleTupleImul(self,*args):
622 import _MEDCouplingClient
623 return _MEDCouplingClient.DataArrayDoubleTuple____imul___(self, self, *args)
624 def MEDCouplingDataArrayDoubleTupleIdiv(self,*args):
625 import _MEDCouplingClient
626 return _MEDCouplingClient.DataArrayDoubleTuple____idiv___(self, self, *args)
627 def MEDCouplingDataArrayIntTupleIadd(self,*args):
628 import _MEDCouplingClient
629 return _MEDCouplingClient.DataArrayIntTuple____iadd___(self, self, *args)
630 def MEDCouplingDataArrayIntTupleIsub(self,*args):
631 import _MEDCouplingClient
632 return _MEDCouplingClient.DataArrayIntTuple____isub___(self, self, *args)
633 def MEDCouplingDataArrayIntTupleImul(self,*args):
634 import _MEDCouplingClient
635 return _MEDCouplingClient.DataArrayIntTuple____imul___(self, self, *args)
636 def MEDCouplingDataArrayIntTupleIdiv(self,*args):
637 import _MEDCouplingClient
638 return _MEDCouplingClient.DataArrayIntTuple____idiv___(self, self, *args)
639 def MEDCouplingDataArrayIntTupleImod(self,*args):
640 import _MEDCouplingClient
641 return _MEDCouplingClient.DataArrayIntTuple____imod___(self, self, *args)
642 def ParaMEDMEMDenseMatrixIadd(self,*args):
643 import _MEDCouplingClient
644 return _MEDCouplingClient.DenseMatrix____iadd___(self, self, *args)
645 def ParaMEDMEMDenseMatrixIsub(self,*args):
646 import _MEDCouplingClient
647 return _MEDCouplingClient.DenseMatrix____isub___(self, self, *args)
648 def MEDCouplingUMeshnew(cls,*args):
649 import _MEDCouplingClient
650 return _MEDCouplingClient.MEDCouplingUMesh____new___(cls,args)
651 def MEDCoupling1DGTUMeshnew(cls,*args):
652 import _MEDCouplingClient
653 return _MEDCouplingClient.MEDCoupling1DGTUMesh____new___(cls,args)
654 def MEDCoupling1SGTUMeshnew(cls,*args):
655 import _MEDCouplingClient
656 return _MEDCouplingClient.MEDCoupling1SGTUMesh____new___(cls,args)
657 def MEDCouplingCurveLinearMeshnew(cls,*args):
658 import _MEDCouplingClient
659 return _MEDCouplingClient.MEDCouplingCurveLinearMesh____new___(cls,args)
660 def MEDCouplingCMeshnew(cls,*args):
661 import _MEDCouplingClient
662 return _MEDCouplingClient.MEDCouplingCMesh____new___(cls,args)
663 def MEDCouplingIMeshnew(cls,*args):
664 import _MEDCouplingClient
665 return _MEDCouplingClient.MEDCouplingIMesh____new___(cls,args)
666 def MEDCouplingExtrudedMeshnew(cls,*args):
667 import _MEDCouplingClient
668 return _MEDCouplingClient.MEDCouplingExtrudedMesh____new___(cls,args)
671 %include "MEDCouplingFinalize.i"