1 // Copyright (C) 2007-2013 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.
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 "MEDCouplingExtrudedMeshServant.hxx"
30 #include "MEDCouplingCMeshServant.hxx"
31 #include "MEDCouplingCurveLinearMeshServant.hxx"
32 #include "DataArrayDoubleServant.hxx"
33 #include "DataArrayIntServant.hxx"
34 #include "MEDCouplingCorbaTypemaps.i"
36 using namespace ParaMEDMEM;
39 %include "MEDCouplingCommon.i"
43 class MEDCouplingFieldDoubleServant
48 static PyObject *_this(const MEDCouplingFieldDouble *cppPointerOfMesh)
50 return buildServantAndActivate<MEDCouplingFieldDoubleServant>(cppPointerOfMesh);
53 static PyObject *_this2(const MEDCouplingFieldDouble *cppPointerOfMesh)
55 return buildServantAndActivate2<MEDCouplingFieldDoubleServant>(cppPointerOfMesh);
60 class MEDCouplingFieldTemplateServant
65 static PyObject *_this(const MEDCouplingFieldTemplate *cppPointerOfMesh)
67 return buildServantAndActivate<MEDCouplingFieldTemplateServant>(cppPointerOfMesh);
70 static PyObject *_this2(const MEDCouplingFieldTemplate *cppPointerOfMesh)
72 return buildServantAndActivate2<MEDCouplingFieldTemplateServant>(cppPointerOfMesh);
77 class MEDCouplingMultiFieldsServant
82 static PyObject *_this(const MEDCouplingMultiFields *cppPointerOfMesh)
84 return buildServantAndActivate<MEDCouplingMultiFieldsServant>(cppPointerOfMesh);
87 static PyObject *_this2(const MEDCouplingMultiFields *cppPointerOfMesh)
89 return buildServantAndActivate2<MEDCouplingMultiFieldsServant>(cppPointerOfMesh);
94 class MEDCouplingFieldOverTimeServant
99 static PyObject *_this(const MEDCouplingFieldOverTime *cppPointerOfMesh)
101 return buildServantAndActivate<MEDCouplingFieldOverTimeServant>(cppPointerOfMesh);
104 static PyObject *_this2(const MEDCouplingFieldOverTime *cppPointerOfMesh)
106 return buildServantAndActivate2<MEDCouplingFieldOverTimeServant>(cppPointerOfMesh);
111 class MEDCouplingUMeshServant
116 static PyObject *_this(const MEDCouplingUMesh *cppPointerOfMesh)
118 return buildServantAndActivate<MEDCouplingUMeshServant>(cppPointerOfMesh);
121 static PyObject *_this2(const MEDCouplingUMesh *cppPointerOfMesh)
123 return buildServantAndActivate2<MEDCouplingUMeshServant>(cppPointerOfMesh);
128 class MEDCouplingExtrudedMeshServant
133 static PyObject *_this(const MEDCouplingExtrudedMesh *cppPointerOfMesh)
135 return buildServantAndActivate<MEDCouplingExtrudedMeshServant>(cppPointerOfMesh);
138 static PyObject *_this2(const MEDCouplingExtrudedMesh *cppPointerOfMesh)
140 return buildServantAndActivate2<MEDCouplingExtrudedMeshServant>(cppPointerOfMesh);
145 class MEDCouplingCMeshServant
150 static PyObject *_this(const MEDCouplingCMesh *cppPointerOfMesh)
152 return buildServantAndActivate<MEDCouplingCMeshServant>(cppPointerOfMesh);
155 static PyObject *_this2(const MEDCouplingCMesh *cppPointerOfMesh)
157 return buildServantAndActivate2<MEDCouplingCMeshServant>(cppPointerOfMesh);
162 class MEDCouplingCurveLinearMeshServant
167 static PyObject *_this(const MEDCouplingCurveLinearMesh *cppPointerOfMesh)
169 return buildServantAndActivate<MEDCouplingCurveLinearMeshServant>(cppPointerOfMesh);
172 static PyObject *_this2(const MEDCouplingCurveLinearMesh *cppPointerOfMesh)
174 return buildServantAndActivate2<MEDCouplingCurveLinearMeshServant>(cppPointerOfMesh);
179 class DataArrayDoubleServant
184 static PyObject *_this(const DataArrayDouble *cppPointerOfMesh)
186 return buildServantAndActivate<DataArrayDoubleServant>(cppPointerOfMesh);
189 static PyObject *_this2(const DataArrayDouble *cppPointerOfMesh)
191 return buildServantAndActivate2<DataArrayDoubleServant>(cppPointerOfMesh);
196 class DataArrayIntServant
201 static PyObject *_this(const DataArrayInt *cppPointerOfMesh)
203 return buildServantAndActivate<DataArrayIntServant>(cppPointerOfMesh);
206 static PyObject *_this2(const DataArrayInt *cppPointerOfMesh)
208 return buildServantAndActivate2<DataArrayIntServant>(cppPointerOfMesh);
215 def ParaMEDMEMDataArrayDoubleIadd(self,*args):
216 import _MEDCouplingCorba
217 return _MEDCouplingCorba.DataArrayDouble____iadd___(self, self, *args)
218 def ParaMEDMEMDataArrayDoubleIsub(self,*args):
219 import _MEDCouplingCorba
220 return _MEDCouplingCorba.DataArrayDouble____isub___(self, self, *args)
221 def ParaMEDMEMDataArrayDoubleImul(self,*args):
222 import _MEDCouplingCorba
223 return _MEDCouplingCorba.DataArrayDouble____imul___(self, self, *args)
224 def ParaMEDMEMDataArrayDoubleIdiv(self,*args):
225 import _MEDCouplingCorba
226 return _MEDCouplingCorba.DataArrayDouble____idiv___(self, self, *args)
227 def ParaMEDMEMDataArrayDoubleIpow(self,*args):
228 import _MEDCouplingCorba
229 return _MEDCouplingCorba.DataArrayDouble____ipow___(self, self, *args)
230 def ParaMEDMEMMEDCouplingFieldDoubleIadd(self,*args):
231 import _MEDCouplingCorba
232 return _MEDCouplingCorba.MEDCouplingFieldDouble____iadd___(self, self, *args)
233 def ParaMEDMEMMEDCouplingFieldDoubleIsub(self,*args):
234 import _MEDCouplingCorba
235 return _MEDCouplingCorba.MEDCouplingFieldDouble____isub___(self, self, *args)
236 def ParaMEDMEMMEDCouplingFieldDoubleImul(self,*args):
237 import _MEDCouplingCorba
238 return _MEDCouplingCorba.MEDCouplingFieldDouble____imul___(self, self, *args)
239 def ParaMEDMEMMEDCouplingFieldDoubleIdiv(self,*args):
240 import _MEDCouplingCorba
241 return _MEDCouplingCorba.MEDCouplingFieldDouble____idiv___(self, self, *args)
242 def ParaMEDMEMMEDCouplingFieldDoubleIpow(self,*args):
243 import _MEDCouplingCorba
244 return _MEDCouplingCorba.MEDCouplingFieldDouble____ipow___(self, self, *args)
245 def ParaMEDMEMDataArrayIntIadd(self,*args):
246 import _MEDCouplingCorba
247 return _MEDCouplingCorba.DataArrayInt____iadd___(self, self, *args)
248 def ParaMEDMEMDataArrayIntIsub(self,*args):
249 import _MEDCouplingCorba
250 return _MEDCouplingCorba.DataArrayInt____isub___(self, self, *args)
251 def ParaMEDMEMDataArrayIntImul(self,*args):
252 import _MEDCouplingCorba
253 return _MEDCouplingCorba.DataArrayInt____imul___(self, self, *args)
254 def ParaMEDMEMDataArrayIntIdiv(self,*args):
255 import _MEDCouplingCorba
256 return _MEDCouplingCorba.DataArrayInt____idiv___(self, self, *args)
257 def ParaMEDMEMDataArrayIntImod(self,*args):
258 import _MEDCouplingCorba
259 return _MEDCouplingCorba.DataArrayInt____imod___(self, self, *args)
260 def ParaMEDMEMDataArrayIntIpow(self,*args):
261 import _MEDCouplingCorba
262 return _MEDCouplingCorba.DataArrayInt____ipow___(self, self, *args)
263 def ParaMEDMEMDataArrayDoubleTupleIadd(self,*args):
264 import _MEDCouplingCorba
265 return _MEDCouplingCorba.DataArrayDoubleTuple____iadd___(self, self, *args)
266 def ParaMEDMEMDataArrayDoubleTupleIsub(self,*args):
267 import _MEDCouplingCorba
268 return _MEDCouplingCorba.DataArrayDoubleTuple____isub___(self, self, *args)
269 def ParaMEDMEMDataArrayDoubleTupleImul(self,*args):
270 import _MEDCouplingCorba
271 return _MEDCouplingCorba.DataArrayDoubleTuple____imul___(self, self, *args)
272 def ParaMEDMEMDataArrayDoubleTupleIdiv(self,*args):
273 import _MEDCouplingCorba
274 return _MEDCouplingCorba.DataArrayDoubleTuple____idiv___(self, self, *args)
275 def ParaMEDMEMDataArrayIntTupleIadd(self,*args):
276 import _MEDCouplingCorba
277 return _MEDCouplingCorba.DataArrayIntTuple____iadd___(self, self, *args)
278 def ParaMEDMEMDataArrayIntTupleIsub(self,*args):
279 import _MEDCouplingCorba
280 return _MEDCouplingCorba.DataArrayIntTuple____isub___(self, self, *args)
281 def ParaMEDMEMDataArrayIntTupleImul(self,*args):
282 import _MEDCouplingCorba
283 return _MEDCouplingCorba.DataArrayIntTuple____imul___(self, self, *args)
284 def ParaMEDMEMDataArrayIntTupleIdiv(self,*args):
285 import _MEDCouplingCorba
286 return _MEDCouplingCorba.DataArrayIntTuple____idiv___(self, self, *args)
287 def ParaMEDMEMDataArrayIntTupleImod(self,*args):
288 import _MEDCouplingCorba
289 return _MEDCouplingCorba.DataArrayIntTuple____imod___(self, self, *args)
292 %include "MEDCouplingFinalize.i"