X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPython%2FlibBatch_Swig_typemap.i;fp=src%2FPython%2FlibBatch_Swig_typemap.i;h=6e62cfe3340e24935572caf5715e17649e811c0b;hb=2a465e51fe8c18f5732714dfba052d568ed0e716;hp=6b2a011232214e715f9ee4d8560ff2f1d90bba25;hpb=1827ba2751d7ac527188c3fcd472f4d77f34e719;p=tools%2Flibbatch.git diff --git a/src/Python/libBatch_Swig_typemap.i b/src/Python/libBatch_Swig_typemap.i index 6b2a011..6e62cfe 100644 --- a/src/Python/libBatch_Swig_typemap.i +++ b/src/Python/libBatch_Swig_typemap.i @@ -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; -#}