1 // Copyright (C) 2007-2024 CEA, EDF
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 MEDCouplingCorba
24 #include "MEDCouplingFieldDoubleServant.hxx"
25 #include "MEDCouplingFieldTemplateServant.hxx"
26 #include "MEDCouplingMultiFieldsServant.hxx"
27 #include "MEDCouplingFieldOverTimeServant.hxx"
28 #include "MEDCouplingUMeshServant.hxx"
29 #include "MEDCoupling1SGTUMeshServant.hxx"
30 #include "MEDCoupling1DGTUMeshServant.hxx"
31 #include "MEDCouplingExtrudedMeshServant.hxx"
32 #include "MEDCouplingCMeshServant.hxx"
33 #include "MEDCouplingIMeshServant.hxx"
34 #include "MEDCouplingCurveLinearMeshServant.hxx"
35 #include "DataArrayDoubleServant.hxx"
36 #include "DataArrayIntServant.hxx"
37 #include "MEDCouplingCorbaTypemaps.i"
39 using namespace MEDCoupling;
42 %include "MEDCouplingCommon.i"
46 class MEDCouplingFieldDoubleServant
51 static PyObject *_this(const MEDCouplingFieldDouble *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
53 return buildServantAndActivate<MEDCouplingFieldDoubleServant>(cppPointerOfMesh);
56 static PyObject *_this2(const MEDCouplingFieldDouble *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
58 return buildServantAndActivate2<MEDCouplingFieldDoubleServant>(cppPointerOfMesh);
63 class MEDCouplingFieldTemplateServant
68 static PyObject *_this(const MEDCouplingFieldTemplate *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
70 return buildServantAndActivate<MEDCouplingFieldTemplateServant>(cppPointerOfMesh);
73 static PyObject *_this2(const MEDCouplingFieldTemplate *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
75 return buildServantAndActivate2<MEDCouplingFieldTemplateServant>(cppPointerOfMesh);
80 class MEDCouplingMultiFieldsServant
85 static PyObject *_this(const MEDCouplingMultiFields *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
87 return buildServantAndActivate<MEDCouplingMultiFieldsServant>(cppPointerOfMesh);
90 static PyObject *_this2(const MEDCouplingMultiFields *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
92 return buildServantAndActivate2<MEDCouplingMultiFieldsServant>(cppPointerOfMesh);
97 class MEDCouplingFieldOverTimeServant
102 static PyObject *_this(const MEDCouplingFieldOverTime *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
104 return buildServantAndActivate<MEDCouplingFieldOverTimeServant>(cppPointerOfMesh);
107 static PyObject *_this2(const MEDCouplingFieldOverTime *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
109 return buildServantAndActivate2<MEDCouplingFieldOverTimeServant>(cppPointerOfMesh);
114 class MEDCouplingMeshServant
119 static PyObject *_this(const MEDCouplingMesh *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
121 if(!cppPointerOfMesh)
122 throw INTERP_KERNEL::Exception("MEDCouplingMeshServant::_this : input pointer is NULL !");
123 if(dynamic_cast<const MEDCouplingUMesh *>(cppPointerOfMesh))
124 return buildServantAndActivate<MEDCouplingUMeshServant>(dynamic_cast<const MEDCouplingUMesh *>(cppPointerOfMesh));
125 if(dynamic_cast<const MEDCoupling1SGTUMesh *>(cppPointerOfMesh))
126 return buildServantAndActivate<MEDCoupling1SGTUMeshServant>(dynamic_cast<const MEDCoupling1SGTUMesh *>(cppPointerOfMesh));
127 if(dynamic_cast<const MEDCoupling1DGTUMesh *>(cppPointerOfMesh))
128 return buildServantAndActivate<MEDCoupling1DGTUMeshServant>(dynamic_cast<const MEDCoupling1DGTUMesh *>(cppPointerOfMesh));
129 if(dynamic_cast<const MEDCouplingMappedExtrudedMesh *>(cppPointerOfMesh))
130 return buildServantAndActivate<MEDCouplingExtrudedMeshServant>(dynamic_cast<const MEDCouplingMappedExtrudedMesh *>(cppPointerOfMesh));
131 if(dynamic_cast<const MEDCouplingCMesh *>(cppPointerOfMesh))
132 return buildServantAndActivate<MEDCouplingCMeshServant>(dynamic_cast<const MEDCouplingCMesh *>(cppPointerOfMesh));
133 if(dynamic_cast<const MEDCouplingIMesh *>(cppPointerOfMesh))
134 return buildServantAndActivate<MEDCouplingIMeshServant>(dynamic_cast<const MEDCouplingIMesh *>(cppPointerOfMesh));
135 if(dynamic_cast<const MEDCouplingCurveLinearMesh *>(cppPointerOfMesh))
136 return buildServantAndActivate<MEDCouplingCurveLinearMeshServant>(dynamic_cast<const MEDCouplingCurveLinearMesh *>(cppPointerOfMesh));
137 throw INTERP_KERNEL::Exception("MEDCouplingMeshServant::_this : unrecognized type (or not managed type) of Mesh in input !");
140 static PyObject *_this2(const MEDCouplingMesh *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
142 if(!cppPointerOfMesh)
143 throw INTERP_KERNEL::Exception("MEDCouplingMeshServant::_this2 : input pointer is NULL !");
144 if(dynamic_cast<const MEDCouplingUMesh *>(cppPointerOfMesh))
145 return buildServantAndActivate2<MEDCouplingUMeshServant>(dynamic_cast<const MEDCouplingUMesh *>(cppPointerOfMesh));
146 if(dynamic_cast<const MEDCoupling1SGTUMesh *>(cppPointerOfMesh))
147 return buildServantAndActivate2<MEDCoupling1SGTUMeshServant>(dynamic_cast<const MEDCoupling1SGTUMesh *>(cppPointerOfMesh));
148 if(dynamic_cast<const MEDCoupling1DGTUMesh *>(cppPointerOfMesh))
149 return buildServantAndActivate2<MEDCoupling1DGTUMeshServant>(dynamic_cast<const MEDCoupling1DGTUMesh *>(cppPointerOfMesh));
150 if(dynamic_cast<const MEDCouplingMappedExtrudedMesh *>(cppPointerOfMesh))
151 return buildServantAndActivate2<MEDCouplingExtrudedMeshServant>(dynamic_cast<const MEDCouplingMappedExtrudedMesh *>(cppPointerOfMesh));
152 if(dynamic_cast<const MEDCouplingCMesh *>(cppPointerOfMesh))
153 return buildServantAndActivate2<MEDCouplingCMeshServant>(dynamic_cast<const MEDCouplingCMesh *>(cppPointerOfMesh));
154 if(dynamic_cast<const MEDCouplingIMesh *>(cppPointerOfMesh))
155 return buildServantAndActivate2<MEDCouplingIMeshServant>(dynamic_cast<const MEDCouplingIMesh *>(cppPointerOfMesh));
156 if(dynamic_cast<const MEDCouplingCurveLinearMesh *>(cppPointerOfMesh))
157 return buildServantAndActivate2<MEDCouplingCurveLinearMeshServant>(dynamic_cast<const MEDCouplingCurveLinearMesh *>(cppPointerOfMesh));
158 throw INTERP_KERNEL::Exception("MEDCouplingMeshServant::_this2 : unrecognized type (or not managed type) of Mesh in input !");
163 class MEDCouplingUMeshServant
168 static PyObject *_this(const MEDCouplingUMesh *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
170 return buildServantAndActivate<MEDCouplingUMeshServant>(cppPointerOfMesh);
173 static PyObject *_this2(const MEDCouplingUMesh *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
175 return buildServantAndActivate2<MEDCouplingUMeshServant>(cppPointerOfMesh);
180 class MEDCoupling1SGTUMeshServant
185 static PyObject *_this(const MEDCoupling1SGTUMesh *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
187 return buildServantAndActivate<MEDCoupling1SGTUMeshServant>(cppPointerOfMesh);
190 static PyObject *_this2(const MEDCoupling1SGTUMesh *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
192 return buildServantAndActivate2<MEDCoupling1SGTUMeshServant>(cppPointerOfMesh);
197 class MEDCoupling1DGTUMeshServant
202 static PyObject *_this(const MEDCoupling1DGTUMesh *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
204 return buildServantAndActivate<MEDCoupling1DGTUMeshServant>(cppPointerOfMesh);
207 static PyObject *_this2(const MEDCoupling1DGTUMesh *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
209 return buildServantAndActivate2<MEDCoupling1DGTUMeshServant>(cppPointerOfMesh);
214 class MEDCouplingExtrudedMeshServant
219 static PyObject *_this(const MEDCouplingMappedExtrudedMesh *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
221 return buildServantAndActivate<MEDCouplingExtrudedMeshServant>(cppPointerOfMesh);
224 static PyObject *_this2(const MEDCouplingMappedExtrudedMesh *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
226 return buildServantAndActivate2<MEDCouplingExtrudedMeshServant>(cppPointerOfMesh);
231 class MEDCouplingCMeshServant
236 static PyObject *_this(const MEDCouplingCMesh *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
238 return buildServantAndActivate<MEDCouplingCMeshServant>(cppPointerOfMesh);
241 static PyObject *_this2(const MEDCouplingCMesh *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
243 return buildServantAndActivate2<MEDCouplingCMeshServant>(cppPointerOfMesh);
248 class MEDCouplingIMeshServant
253 static PyObject *_this(const MEDCouplingIMesh *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
255 return buildServantAndActivate<MEDCouplingIMeshServant>(cppPointerOfMesh);
258 static PyObject *_this2(const MEDCouplingIMesh *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
260 return buildServantAndActivate2<MEDCouplingIMeshServant>(cppPointerOfMesh);
265 class MEDCouplingCurveLinearMeshServant
270 static PyObject *_this(const MEDCouplingCurveLinearMesh *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
272 return buildServantAndActivate<MEDCouplingCurveLinearMeshServant>(cppPointerOfMesh);
275 static PyObject *_this2(const MEDCouplingCurveLinearMesh *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
277 return buildServantAndActivate2<MEDCouplingCurveLinearMeshServant>(cppPointerOfMesh);
282 class DataArrayDoubleServant
287 static PyObject *_this(const DataArrayDouble *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
289 return buildServantAndActivate<DataArrayDoubleServant>(cppPointerOfMesh);
292 static PyObject *_this2(const DataArrayDouble *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
294 return buildServantAndActivate2<DataArrayDoubleServant>(cppPointerOfMesh);
299 class DataArrayIntServant
304 static PyObject *_this(const DataArrayInt *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
306 return buildServantAndActivate<DataArrayIntServant>(cppPointerOfMesh);
309 static PyObject *_this2(const DataArrayInt *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
311 return buildServantAndActivate2<DataArrayIntServant>(cppPointerOfMesh);
318 def MEDCouplingDataArrayDoubleIadd(self,*args):
320 return _MEDCoupling.DataArrayDouble____iadd___(self, self, *args)
321 def MEDCouplingDataArrayDoubleIsub(self,*args):
323 return _MEDCoupling.DataArrayDouble____isub___(self, self, *args)
324 def MEDCouplingDataArrayDoubleImul(self,*args):
326 return _MEDCoupling.DataArrayDouble____imul___(self, self, *args)
327 def MEDCouplingDataArrayDoubleIdiv(self,*args):
329 return _MEDCoupling.DataArrayDouble____idiv___(self, self, *args)
330 def MEDCouplingDataArrayDoubleIpow(self,*args):
332 return _MEDCoupling.DataArrayDouble____ipow___(self, self, *args)
333 def MEDCouplingFieldDoubleIadd(self,*args):
335 return _MEDCoupling.MEDCouplingFieldDouble____iadd___(self, self, *args)
336 def MEDCouplingFieldDoubleIsub(self,*args):
338 return _MEDCoupling.MEDCouplingFieldDouble____isub___(self, self, *args)
339 def MEDCouplingFieldDoubleImul(self,*args):
341 return _MEDCoupling.MEDCouplingFieldDouble____imul___(self, self, *args)
342 def MEDCouplingFieldDoubleIdiv(self,*args):
344 return _MEDCoupling.MEDCouplingFieldDouble____idiv___(self, self, *args)
345 def MEDCouplingFieldDoubleIpow(self,*args):
347 return _MEDCoupling.MEDCouplingFieldDouble____ipow___(self, self, *args)
348 def MEDCouplingDataArrayInt32Iadd(self,*args):
350 return _MEDCoupling.DataArrayInt32____iadd___(self, self, *args)
351 def MEDCouplingDataArrayInt32Isub(self,*args):
353 return _MEDCoupling.DataArrayInt32____isub___(self, self, *args)
354 def MEDCouplingDataArrayInt32Imul(self,*args):
356 return _MEDCoupling.DataArrayInt32____imul___(self, self, *args)
357 def MEDCouplingDataArrayInt32Idiv(self,*args):
359 return _MEDCoupling.DataArrayInt32____idiv___(self, self, *args)
360 def MEDCouplingDataArrayInt32Imod(self,*args):
362 return _MEDCoupling.DataArrayInt32____imod___(self, self, *args)
363 def MEDCouplingDataArrayInt32Ipow(self,*args):
365 return _MEDCoupling.DataArrayInt32____ipow___(self, self, *args)
366 def MEDCouplingDataArrayInt64Iadd(self,*args):
368 return _MEDCoupling.DataArrayInt64____iadd___(self, self, *args)
369 def MEDCouplingDataArrayInt64Isub(self,*args):
371 return _MEDCoupling.DataArrayInt64____isub___(self, self, *args)
372 def MEDCouplingDataArrayInt64Imul(self,*args):
374 return _MEDCoupling.DataArrayInt64____imul___(self, self, *args)
375 def MEDCouplingDataArrayInt64Idiv(self,*args):
377 return _MEDCoupling.DataArrayInt64____idiv___(self, self, *args)
378 def MEDCouplingDataArrayInt64Imod(self,*args):
380 return _MEDCoupling.DataArrayInt64____imod___(self, self, *args)
381 def MEDCouplingDataArrayInt64Ipow(self,*args):
383 return _MEDCoupling.DataArrayInt64____ipow___(self, self, *args)
384 def MEDCouplingDataArrayFloatIadd(self,*args):
386 return _MEDCoupling.DataArrayFloat____iadd___(self, self, *args)
387 def MEDCouplingDataArrayFloatIsub(self,*args):
389 return _MEDCoupling.DataArrayFloat____isub___(self, self, *args)
390 def MEDCouplingDataArrayFloatImul(self,*args):
392 return _MEDCoupling.DataArrayFloat____imul___(self, self, *args)
393 def MEDCouplingDataArrayFloatIdiv(self,*args):
395 return _MEDCoupling.DataArrayFloat____idiv___(self, self, *args)
396 def MEDCouplingDataArrayDoubleTupleIadd(self,*args):
398 return _MEDCoupling.DataArrayDoubleTuple____iadd___(self, self, *args)
399 def MEDCouplingDataArrayDoubleTupleIsub(self,*args):
401 return _MEDCoupling.DataArrayDoubleTuple____isub___(self, self, *args)
402 def MEDCouplingDataArrayDoubleTupleImul(self,*args):
404 return _MEDCoupling.DataArrayDoubleTuple____imul___(self, self, *args)
405 def MEDCouplingDataArrayDoubleTupleIdiv(self,*args):
407 return _MEDCoupling.DataArrayDoubleTuple____idiv___(self, self, *args)
408 def MEDCouplingDataArrayInt32TupleIadd(self,*args):
410 return _MEDCoupling.DataArrayInt32Tuple____iadd___(self, self, *args)
411 def MEDCouplingDataArrayInt32TupleIsub(self,*args):
413 return _MEDCoupling.DataArrayInt32Tuple____isub___(self, self, *args)
414 def MEDCouplingDataArrayInt32TupleImul(self,*args):
416 return _MEDCoupling.DataArrayInt32Tuple____imul___(self, self, *args)
417 def MEDCouplingDataArrayInt32TupleIdiv(self,*args):
419 return _MEDCoupling.DataArrayInt32Tuple____idiv___(self, self, *args)
420 def MEDCouplingDataArrayInt32TupleImod(self,*args):
422 return _MEDCoupling.DataArrayInt32Tuple____imod___(self, self, *args)
423 def MEDCouplingDataArrayInt64TupleIadd(self,*args):
425 return _MEDCoupling.DataArrayInt64Tuple____iadd___(self, self, *args)
426 def MEDCouplingDataArrayInt64TupleIsub(self,*args):
428 return _MEDCoupling.DataArrayInt64Tuple____isub___(self, self, *args)
429 def MEDCouplingDataArrayInt64TupleImul(self,*args):
431 return _MEDCoupling.DataArrayInt64Tuple____imul___(self, self, *args)
432 def MEDCouplingDataArrayInt64TupleIdiv(self,*args):
434 return _MEDCoupling.DataArrayInt64Tuple____idiv___(self, self, *args)
435 def MEDCouplingDataArrayInt64TupleImod(self,*args):
437 return _MEDCoupling.DataArrayInt64Tuple____imod___(self, self, *args)
438 def MEDCouplingDenseMatrixIadd(self,*args):
440 return _MEDCoupling.DenseMatrix____iadd___(self, self, *args)
441 def MEDCouplingDenseMatrixIsub(self,*args):
443 return _MEDCoupling.DenseMatrix____isub___(self, self, *args)
446 %include "MEDCouplingFinalize.i"