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