Salome HOME
Merge from V6_main 11/02/2013
[modules/med.git] / src / MEDCouplingCorba_Swig / MEDCouplingCorba.i
1 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D
2 //
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.
7 //
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.
12 //
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
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 // Author : Anthony Geay (CEA/DEN)
20
21 %module MEDCouplingCorba
22
23 %{
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"
35
36 using namespace ParaMEDMEM;
37 %}
38
39 %include "MEDCouplingCommon.i"
40
41 namespace ParaMEDMEM
42 {
43   class MEDCouplingFieldDoubleServant
44   {
45   public:
46     %extend
47        {
48          static PyObject *_this(const MEDCouplingFieldDouble *cppPointerOfMesh)
49          {
50            return buildServantAndActivate<MEDCouplingFieldDoubleServant>(cppPointerOfMesh);
51          }
52        }
53   };
54
55   class MEDCouplingFieldTemplateServant
56   {
57   public:
58     %extend
59        {
60          static PyObject *_this(const MEDCouplingFieldTemplate *cppPointerOfMesh)
61          {
62            return buildServantAndActivate<MEDCouplingFieldTemplateServant>(cppPointerOfMesh);
63          }
64        }
65   };
66
67   class MEDCouplingMultiFieldsServant
68   {
69   public:
70     %extend
71        {
72          static PyObject *_this(const MEDCouplingMultiFields *cppPointerOfMesh)
73          {
74            return buildServantAndActivate<MEDCouplingMultiFieldsServant>(cppPointerOfMesh);
75          }
76        }
77   };
78
79   class MEDCouplingFieldOverTimeServant
80   {
81   public:
82     %extend
83        {
84          static PyObject *_this(const MEDCouplingFieldOverTime *cppPointerOfMesh)
85          {
86            return buildServantAndActivate<MEDCouplingFieldOverTimeServant>(cppPointerOfMesh);
87          }
88        }
89   };
90
91   class MEDCouplingUMeshServant
92   {
93   public:
94     %extend
95        {
96          static PyObject *_this(const MEDCouplingUMesh *cppPointerOfMesh)
97          {
98            return buildServantAndActivate<MEDCouplingUMeshServant>(cppPointerOfMesh);
99          }
100        }
101   };
102
103   class MEDCouplingExtrudedMeshServant
104   {
105   public:
106     %extend
107        {
108          static PyObject *_this(const MEDCouplingExtrudedMesh *cppPointerOfMesh)
109          {
110            return buildServantAndActivate<MEDCouplingExtrudedMeshServant>(cppPointerOfMesh);
111          }
112        }
113   };
114
115   class MEDCouplingCMeshServant
116   {
117   public:
118     %extend
119        {
120          static PyObject *_this(const MEDCouplingCMesh *cppPointerOfMesh)
121          {
122            return buildServantAndActivate<MEDCouplingCMeshServant>(cppPointerOfMesh);
123          }
124        }
125   };
126
127   class MEDCouplingCurveLinearMeshServant
128   {
129   public:
130     %extend
131        {
132          static PyObject *_this(const MEDCouplingCurveLinearMesh *cppPointerOfMesh)
133          {
134            return buildServantAndActivate<MEDCouplingCurveLinearMeshServant>(cppPointerOfMesh);
135          }
136        }
137   };
138
139   class DataArrayDoubleServant
140   {
141   public:
142     %extend
143        {
144          static PyObject *_this(const DataArrayDouble *cppPointerOfMesh)
145          {
146            return buildServantAndActivate<DataArrayDoubleServant>(cppPointerOfMesh);
147          }
148        }
149   };
150
151   class DataArrayIntServant
152   {
153   public:
154     %extend
155        {
156          static PyObject *_this(const DataArrayInt *cppPointerOfMesh)
157          {
158            return buildServantAndActivate<DataArrayIntServant>(cppPointerOfMesh);
159          }
160        }
161   };
162 }
163
164 %pythoncode %{
165 def ParaMEDMEMDataArrayDoubleIadd(self,*args):
166     import _MEDCouplingCorba
167     return _MEDCouplingCorba.DataArrayDouble____iadd___(self, self, *args)
168 def ParaMEDMEMDataArrayDoubleIsub(self,*args):
169     import _MEDCouplingCorba
170     return _MEDCouplingCorba.DataArrayDouble____isub___(self, self, *args)
171 def ParaMEDMEMDataArrayDoubleImul(self,*args):
172     import _MEDCouplingCorba
173     return _MEDCouplingCorba.DataArrayDouble____imul___(self, self, *args)
174 def ParaMEDMEMDataArrayDoubleIdiv(self,*args):
175     import _MEDCouplingCorba
176     return _MEDCouplingCorba.DataArrayDouble____idiv___(self, self, *args)
177 def ParaMEDMEMMEDCouplingFieldDoubleIadd(self,*args):
178     import _MEDCouplingCorba
179     return _MEDCouplingCorba.MEDCouplingFieldDouble____iadd___(self, self, *args)
180 def ParaMEDMEMMEDCouplingFieldDoubleIsub(self,*args):
181     import _MEDCouplingCorba
182     return _MEDCouplingCorba.MEDCouplingFieldDouble____isub___(self, self, *args)
183 def ParaMEDMEMMEDCouplingFieldDoubleImul(self,*args):
184     import _MEDCouplingCorba
185     return _MEDCouplingCorba.MEDCouplingFieldDouble____imul___(self, self, *args)
186 def ParaMEDMEMMEDCouplingFieldDoubleIdiv(self,*args):
187     import _MEDCouplingCorba
188     return _MEDCouplingCorba.MEDCouplingFieldDouble____idiv___(self, self, *args)
189 def ParaMEDMEMDataArrayIntIadd(self,*args):
190     import _MEDCouplingCorba
191     return _MEDCouplingCorba.DataArrayInt____iadd___(self, self, *args)
192 def ParaMEDMEMDataArrayIntIsub(self,*args):
193     import _MEDCouplingCorba
194     return _MEDCouplingCorba.DataArrayInt____isub___(self, self, *args)
195 def ParaMEDMEMDataArrayIntImul(self,*args):
196     import _MEDCouplingCorba
197     return _MEDCouplingCorba.DataArrayInt____imul___(self, self, *args)
198 def ParaMEDMEMDataArrayIntIdiv(self,*args):
199     import _MEDCouplingCorba
200     return _MEDCouplingCorba.DataArrayInt____idiv___(self, self, *args)
201 def ParaMEDMEMDataArrayIntImod(self,*args):
202     import _MEDCouplingCorba
203     return _MEDCouplingCorba.DataArrayInt____imod___(self, self, *args)
204 def ParaMEDMEMDataArrayDoubleTupleIadd(self,*args):
205     import _MEDCouplingCorba
206     return _MEDCouplingCorba.DataArrayDoubleTuple____iadd___(self, self, *args)
207 def ParaMEDMEMDataArrayDoubleTupleIsub(self,*args):
208     import _MEDCouplingCorba
209     return _MEDCouplingCorba.DataArrayDoubleTuple____isub___(self, self, *args)
210 def ParaMEDMEMDataArrayDoubleTupleImul(self,*args):
211     import _MEDCouplingCorba
212     return _MEDCouplingCorba.DataArrayDoubleTuple____imul___(self, self, *args)
213 def ParaMEDMEMDataArrayDoubleTupleIdiv(self,*args):
214     import _MEDCouplingCorba
215     return _MEDCouplingCorba.DataArrayDoubleTuple____idiv___(self, self, *args)
216 def ParaMEDMEMDataArrayIntTupleIadd(self,*args):
217     import _MEDCouplingCorba
218     return _MEDCouplingCorba.DataArrayIntTuple____iadd___(self, self, *args)
219 def ParaMEDMEMDataArrayIntTupleIsub(self,*args):
220     import _MEDCouplingCorba
221     return _MEDCouplingCorba.DataArrayIntTuple____isub___(self, self, *args)
222 def ParaMEDMEMDataArrayIntTupleImul(self,*args):
223     import _MEDCouplingCorba
224     return _MEDCouplingCorba.DataArrayIntTuple____imul___(self, self, *args)
225 def ParaMEDMEMDataArrayIntTupleIdiv(self,*args):
226     import _MEDCouplingCorba
227     return _MEDCouplingCorba.DataArrayIntTuple____idiv___(self, self, *args)
228 def ParaMEDMEMDataArrayIntTupleImod(self,*args):
229     import _MEDCouplingCorba
230     return _MEDCouplingCorba.DataArrayIntTuple____imod___(self, self, *args)
231 %}
232
233 %include "MEDCouplingFinalize.i"