Salome HOME
Added constants to represent job status uniformly. Fixed some errors under Windows...
[tools/libbatch.git] / src / Python / libBatch_Swig_typemap.i
index 6b2a011232214e715f9ee4d8560ff2f1d90bba25..6e62cfe3340e24935572caf5715e17649e811c0b 100644 (file)
@@ -210,38 +210,3 @@ typedef int Py_ssize_t;
   $1 = E;
 }
 
-
-
-# // construction d'une string Python a partir d'une string STL
-%typemap(python,out) std::string
-{
-       $result = PyString_FromString($1.c_str());
-}
-
-
-
-# // construction d'une string STL a partir d'une string Python
-#%typemap(in) string & (string S)
-#{
-##  if (!PyString_Check($input)) {
-#    PyErr_SetString(PyExc_ValueError,"Expected a string");
-#    return NULL;
-#  }
-#
-#  S = string(PyString_AsString($input));
-#      $1 = &S; // $1 est une reference donc on lui passe une adresse
-#}
-
-
-
-# // construction d'une string STL a partir d'une string Python
-#%typemap(in) string (string S)
-#{
-##  if (!PyString_Check($input)) {
-#    PyErr_SetString(PyExc_ValueError,"Expected a string");
-#    return NULL;
-#  }
-#
-#  S = string(PyString_AsString($input));
-#      $1 = S;
-#}