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 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 ParaMEDMEM;
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 MEDCouplingExtrudedMesh *>(cppPointerOfMesh))
130 return buildServantAndActivate<MEDCouplingExtrudedMeshServant>(dynamic_cast<const MEDCouplingExtrudedMesh *>(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 MEDCouplingExtrudedMesh *>(cppPointerOfMesh))
151 return buildServantAndActivate2<MEDCouplingExtrudedMeshServant>(dynamic_cast<const MEDCouplingExtrudedMesh *>(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 MEDCouplingExtrudedMesh *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
221 return buildServantAndActivate<MEDCouplingExtrudedMeshServant>(cppPointerOfMesh);
224 static PyObject *_this2(const MEDCouplingExtrudedMesh *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 ParaMEDMEMDataArrayDoublenew(cls,*args):
319 import _MEDCouplingCorba
320 return _MEDCouplingCorba.DataArrayDouble____new___(cls,args)
321 def ParaMEDMEMDataArrayDoubleIadd(self,*args):
322 import _MEDCouplingCorba
323 return _MEDCouplingCorba.DataArrayDouble____iadd___(self, self, *args)
324 def ParaMEDMEMDataArrayDoubleIsub(self,*args):
325 import _MEDCouplingCorba
326 return _MEDCouplingCorba.DataArrayDouble____isub___(self, self, *args)
327 def ParaMEDMEMDataArrayDoubleImul(self,*args):
328 import _MEDCouplingCorba
329 return _MEDCouplingCorba.DataArrayDouble____imul___(self, self, *args)
330 def ParaMEDMEMDataArrayDoubleIdiv(self,*args):
331 import _MEDCouplingCorba
332 return _MEDCouplingCorba.DataArrayDouble____idiv___(self, self, *args)
333 def ParaMEDMEMDataArrayDoubleIpow(self,*args):
334 import _MEDCouplingCorba
335 return _MEDCouplingCorba.DataArrayDouble____ipow___(self, self, *args)
336 def ParaMEDMEMMEDCouplingFieldDoublenew(cls,*args):
337 import _MEDCouplingCorba
338 return _MEDCouplingCorba.MEDCouplingFieldDouble____new___(cls,args)
339 def ParaMEDMEMMEDCouplingFieldDoubleIadd(self,*args):
340 import _MEDCouplingCorba
341 return _MEDCouplingCorba.MEDCouplingFieldDouble____iadd___(self, self, *args)
342 def ParaMEDMEMMEDCouplingFieldDoubleIsub(self,*args):
343 import _MEDCouplingCorba
344 return _MEDCouplingCorba.MEDCouplingFieldDouble____isub___(self, self, *args)
345 def ParaMEDMEMMEDCouplingFieldDoubleImul(self,*args):
346 import _MEDCouplingCorba
347 return _MEDCouplingCorba.MEDCouplingFieldDouble____imul___(self, self, *args)
348 def ParaMEDMEMMEDCouplingFieldDoubleIdiv(self,*args):
349 import _MEDCouplingCorba
350 return _MEDCouplingCorba.MEDCouplingFieldDouble____idiv___(self, self, *args)
351 def ParaMEDMEMMEDCouplingFieldDoubleIpow(self,*args):
352 import _MEDCouplingCorba
353 return _MEDCouplingCorba.MEDCouplingFieldDouble____ipow___(self, self, *args)
354 def ParaMEDMEMDataArrayIntnew(cls,*args):
355 import _MEDCouplingCorba
356 return _MEDCouplingCorba.DataArrayInt____new___(cls,args)
357 def ParaMEDMEMDataArrayIntIadd(self,*args):
358 import _MEDCouplingCorba
359 return _MEDCouplingCorba.DataArrayInt____iadd___(self, self, *args)
360 def ParaMEDMEMDataArrayIntIsub(self,*args):
361 import _MEDCouplingCorba
362 return _MEDCouplingCorba.DataArrayInt____isub___(self, self, *args)
363 def ParaMEDMEMDataArrayIntImul(self,*args):
364 import _MEDCouplingCorba
365 return _MEDCouplingCorba.DataArrayInt____imul___(self, self, *args)
366 def ParaMEDMEMDataArrayIntIdiv(self,*args):
367 import _MEDCouplingCorba
368 return _MEDCouplingCorba.DataArrayInt____idiv___(self, self, *args)
369 def ParaMEDMEMDataArrayIntImod(self,*args):
370 import _MEDCouplingCorba
371 return _MEDCouplingCorba.DataArrayInt____imod___(self, self, *args)
372 def ParaMEDMEMDataArrayIntIpow(self,*args):
373 import _MEDCouplingCorba
374 return _MEDCouplingCorba.DataArrayInt____ipow___(self, self, *args)
375 def ParaMEDMEMDataArrayDoubleTupleIadd(self,*args):
376 import _MEDCouplingCorba
377 return _MEDCouplingCorba.DataArrayDoubleTuple____iadd___(self, self, *args)
378 def ParaMEDMEMDataArrayDoubleTupleIsub(self,*args):
379 import _MEDCouplingCorba
380 return _MEDCouplingCorba.DataArrayDoubleTuple____isub___(self, self, *args)
381 def ParaMEDMEMDataArrayDoubleTupleImul(self,*args):
382 import _MEDCouplingCorba
383 return _MEDCouplingCorba.DataArrayDoubleTuple____imul___(self, self, *args)
384 def ParaMEDMEMDataArrayDoubleTupleIdiv(self,*args):
385 import _MEDCouplingCorba
386 return _MEDCouplingCorba.DataArrayDoubleTuple____idiv___(self, self, *args)
387 def ParaMEDMEMDataArrayIntTupleIadd(self,*args):
388 import _MEDCouplingCorba
389 return _MEDCouplingCorba.DataArrayIntTuple____iadd___(self, self, *args)
390 def ParaMEDMEMDataArrayIntTupleIsub(self,*args):
391 import _MEDCouplingCorba
392 return _MEDCouplingCorba.DataArrayIntTuple____isub___(self, self, *args)
393 def ParaMEDMEMDataArrayIntTupleImul(self,*args):
394 import _MEDCouplingCorba
395 return _MEDCouplingCorba.DataArrayIntTuple____imul___(self, self, *args)
396 def ParaMEDMEMDataArrayIntTupleIdiv(self,*args):
397 import _MEDCouplingCorba
398 return _MEDCouplingCorba.DataArrayIntTuple____idiv___(self, self, *args)
399 def ParaMEDMEMDataArrayIntTupleImod(self,*args):
400 import _MEDCouplingCorba
401 return _MEDCouplingCorba.DataArrayIntTuple____imod___(self, self, *args)
402 def ParaMEDMEMDenseMatrixIadd(self,*args):
403 import _MEDCouplingCorba
404 return _MEDCouplingCorba.DenseMatrix____iadd___(self, self, *args)
405 def ParaMEDMEMDenseMatrixIsub(self,*args):
406 import _MEDCouplingCorba
407 return _MEDCouplingCorba.DenseMatrix____isub___(self, self, *args)
408 def ParaMEDMEMMEDCouplingUMeshnew(cls,*args):
409 import _MEDCouplingCorba
410 return _MEDCouplingCorba.MEDCouplingUMesh____new___(cls,args)
411 def ParaMEDMEMMEDCoupling1DGTUMeshnew(cls,*args):
412 import _MEDCouplingCorba
413 return _MEDCouplingCorba.MEDCoupling1DGTUMesh____new___(cls,args)
414 def ParaMEDMEMMEDCoupling1SGTUMeshnew(cls,*args):
415 import _MEDCouplingCorba
416 return _MEDCouplingCorba.MEDCoupling1SGTUMesh____new___(cls,args)
417 def ParaMEDMEMMEDCouplingCurveLinearMeshnew(cls,*args):
418 import _MEDCouplingCorba
419 return _MEDCouplingCorba.MEDCouplingCurveLinearMesh____new___(cls,args)
420 def ParaMEDMEMMEDCouplingCMeshnew(cls,*args):
421 import _MEDCouplingCorba
422 return _MEDCouplingCorba.MEDCouplingCMesh____new___(cls,args)
423 def ParaMEDMEMMEDCouplingIMeshnew(cls,*args):
424 import _MEDCouplingCorba
425 return _MEDCouplingCorba.MEDCouplingIMesh____new___(cls,args)
426 def ParaMEDMEMMEDCouplingExtrudedMeshnew(cls,*args):
427 import _MEDCouplingCorba
428 return _MEDCouplingCorba.MEDCouplingExtrudedMesh____new___(cls,args)
431 %include "MEDCouplingFinalize.i"