Salome HOME
OK thanks to INV !
[modules/med.git] / src / MEDCouplingCorba_Swig / MEDCouplingCorba.i
index 0a5e5e0dc55bacb98f2d4d9fb41d0057efc77645..869bd06ff13b9ed09aca84bdaf1d0db3630615eb 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2013  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -16,6 +16,7 @@
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+// Author : Anthony Geay (CEA/DEN)
 
 %module MEDCouplingCorba
 
@@ -27,6 +28,7 @@
 #include "MEDCouplingUMeshServant.hxx"
 #include "MEDCouplingExtrudedMeshServant.hxx"
 #include "MEDCouplingCMeshServant.hxx"
+#include "MEDCouplingCurveLinearMeshServant.hxx"
 #include "DataArrayDoubleServant.hxx"
 #include "DataArrayIntServant.hxx"
 #include "MEDCouplingCorbaTypemaps.i"
@@ -47,6 +49,11 @@ namespace ParaMEDMEM
          {
            return buildServantAndActivate<MEDCouplingFieldDoubleServant>(cppPointerOfMesh);
          }
+         
+         static PyObject *_this2(const MEDCouplingFieldDouble *cppPointerOfMesh)
+         {
+           return buildServantAndActivate2<MEDCouplingFieldDoubleServant>(cppPointerOfMesh);
+         }
        }
   };
 
@@ -59,6 +66,11 @@ namespace ParaMEDMEM
          {
            return buildServantAndActivate<MEDCouplingFieldTemplateServant>(cppPointerOfMesh);
          }
+         
+         static PyObject *_this2(const MEDCouplingFieldTemplate *cppPointerOfMesh)
+         {
+           return buildServantAndActivate2<MEDCouplingFieldTemplateServant>(cppPointerOfMesh);
+         }
        }
   };
 
@@ -71,6 +83,11 @@ namespace ParaMEDMEM
          {
            return buildServantAndActivate<MEDCouplingMultiFieldsServant>(cppPointerOfMesh);
          }
+
+         static PyObject *_this2(const MEDCouplingMultiFields *cppPointerOfMesh)
+         {
+           return buildServantAndActivate2<MEDCouplingMultiFieldsServant>(cppPointerOfMesh);
+         }
        }
   };
 
@@ -83,6 +100,11 @@ namespace ParaMEDMEM
          {
            return buildServantAndActivate<MEDCouplingFieldOverTimeServant>(cppPointerOfMesh);
          }
+
+         static PyObject *_this2(const MEDCouplingFieldOverTime *cppPointerOfMesh)
+         {
+           return buildServantAndActivate2<MEDCouplingFieldOverTimeServant>(cppPointerOfMesh);
+         }
        }
   };
 
@@ -95,6 +117,11 @@ namespace ParaMEDMEM
          {
            return buildServantAndActivate<MEDCouplingUMeshServant>(cppPointerOfMesh);
          }
+
+         static PyObject *_this2(const MEDCouplingUMesh *cppPointerOfMesh)
+         {
+           return buildServantAndActivate2<MEDCouplingUMeshServant>(cppPointerOfMesh);
+         }
        }
   };
 
@@ -107,6 +134,11 @@ namespace ParaMEDMEM
          {
            return buildServantAndActivate<MEDCouplingExtrudedMeshServant>(cppPointerOfMesh);
          }
+
+         static PyObject *_this2(const MEDCouplingExtrudedMesh *cppPointerOfMesh)
+         {
+           return buildServantAndActivate2<MEDCouplingExtrudedMeshServant>(cppPointerOfMesh);
+         }
        }
   };
 
@@ -119,6 +151,28 @@ namespace ParaMEDMEM
          {
            return buildServantAndActivate<MEDCouplingCMeshServant>(cppPointerOfMesh);
          }
+         
+         static PyObject *_this2(const MEDCouplingCMesh *cppPointerOfMesh)
+         {
+           return buildServantAndActivate2<MEDCouplingCMeshServant>(cppPointerOfMesh);
+         }
+       }
+  };
+
+  class MEDCouplingCurveLinearMeshServant
+  {
+  public:
+    %extend
+       {
+         static PyObject *_this(const MEDCouplingCurveLinearMesh *cppPointerOfMesh)
+         {
+           return buildServantAndActivate<MEDCouplingCurveLinearMeshServant>(cppPointerOfMesh);
+         }
+
+         static PyObject *_this2(const MEDCouplingCurveLinearMesh *cppPointerOfMesh)
+         {
+           return buildServantAndActivate2<MEDCouplingCurveLinearMeshServant>(cppPointerOfMesh);
+         }
        }
   };
 
@@ -131,6 +185,11 @@ namespace ParaMEDMEM
          {
            return buildServantAndActivate<DataArrayDoubleServant>(cppPointerOfMesh);
          }
+
+         static PyObject *_this2(const DataArrayDouble *cppPointerOfMesh)
+         {
+           return buildServantAndActivate2<DataArrayDoubleServant>(cppPointerOfMesh);
+         }
        }
   };
 
@@ -143,6 +202,11 @@ namespace ParaMEDMEM
          {
            return buildServantAndActivate<DataArrayIntServant>(cppPointerOfMesh);
          }
+
+         static PyObject *_this2(const DataArrayInt *cppPointerOfMesh)
+         {
+           return buildServantAndActivate2<DataArrayIntServant>(cppPointerOfMesh);
+         }
        }
   };
 }
@@ -160,6 +224,9 @@ def ParaMEDMEMDataArrayDoubleImul(self,*args):
 def ParaMEDMEMDataArrayDoubleIdiv(self,*args):
     import _MEDCouplingCorba
     return _MEDCouplingCorba.DataArrayDouble____idiv___(self, self, *args)
+def ParaMEDMEMDataArrayDoubleIpow(self,*args):
+    import _MEDCouplingCorba
+    return _MEDCouplingCorba.DataArrayDouble____ipow___(self, self, *args)
 def ParaMEDMEMMEDCouplingFieldDoubleIadd(self,*args):
     import _MEDCouplingCorba
     return _MEDCouplingCorba.MEDCouplingFieldDouble____iadd___(self, self, *args)
@@ -172,6 +239,9 @@ def ParaMEDMEMMEDCouplingFieldDoubleImul(self,*args):
 def ParaMEDMEMMEDCouplingFieldDoubleIdiv(self,*args):
     import _MEDCouplingCorba
     return _MEDCouplingCorba.MEDCouplingFieldDouble____idiv___(self, self, *args)
+def ParaMEDMEMMEDCouplingFieldDoubleIpow(self,*args):
+    import _MEDCouplingCorba
+    return _MEDCouplingCorba.MEDCouplingFieldDouble____ipow___(self, self, *args)
 def ParaMEDMEMDataArrayIntIadd(self,*args):
     import _MEDCouplingCorba
     return _MEDCouplingCorba.DataArrayInt____iadd___(self, self, *args)
@@ -187,6 +257,36 @@ def ParaMEDMEMDataArrayIntIdiv(self,*args):
 def ParaMEDMEMDataArrayIntImod(self,*args):
     import _MEDCouplingCorba
     return _MEDCouplingCorba.DataArrayInt____imod___(self, self, *args)
+def ParaMEDMEMDataArrayIntIpow(self,*args):
+    import _MEDCouplingCorba
+    return _MEDCouplingCorba.DataArrayInt____ipow___(self, self, *args)
+def ParaMEDMEMDataArrayDoubleTupleIadd(self,*args):
+    import _MEDCouplingCorba
+    return _MEDCouplingCorba.DataArrayDoubleTuple____iadd___(self, self, *args)
+def ParaMEDMEMDataArrayDoubleTupleIsub(self,*args):
+    import _MEDCouplingCorba
+    return _MEDCouplingCorba.DataArrayDoubleTuple____isub___(self, self, *args)
+def ParaMEDMEMDataArrayDoubleTupleImul(self,*args):
+    import _MEDCouplingCorba
+    return _MEDCouplingCorba.DataArrayDoubleTuple____imul___(self, self, *args)
+def ParaMEDMEMDataArrayDoubleTupleIdiv(self,*args):
+    import _MEDCouplingCorba
+    return _MEDCouplingCorba.DataArrayDoubleTuple____idiv___(self, self, *args)
+def ParaMEDMEMDataArrayIntTupleIadd(self,*args):
+    import _MEDCouplingCorba
+    return _MEDCouplingCorba.DataArrayIntTuple____iadd___(self, self, *args)
+def ParaMEDMEMDataArrayIntTupleIsub(self,*args):
+    import _MEDCouplingCorba
+    return _MEDCouplingCorba.DataArrayIntTuple____isub___(self, self, *args)
+def ParaMEDMEMDataArrayIntTupleImul(self,*args):
+    import _MEDCouplingCorba
+    return _MEDCouplingCorba.DataArrayIntTuple____imul___(self, self, *args)
+def ParaMEDMEMDataArrayIntTupleIdiv(self,*args):
+    import _MEDCouplingCorba
+    return _MEDCouplingCorba.DataArrayIntTuple____idiv___(self, self, *args)
+def ParaMEDMEMDataArrayIntTupleImod(self,*args):
+    import _MEDCouplingCorba
+    return _MEDCouplingCorba.DataArrayIntTuple____imod___(self, self, *args)
 %}
 
 %include "MEDCouplingFinalize.i"