diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-05 10:48:37 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-05 10:48:37 +0000 |
| commit | 67fbe8354f27386235e0c8dc57bd036e34a4fe5e (patch) | |
| tree | 607f56f0b6284db691a2efeeffb8676f26f909fb /otk/wrap/ustring.i | |
| parent | 7d94983b2e0c55e9d6fa9bc39c102c5b8b8dd468 (diff) | |
dont make wrap a subdir of otk
Diffstat (limited to 'otk/wrap/ustring.i')
| -rw-r--r-- | otk/wrap/ustring.i | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/otk/wrap/ustring.i b/otk/wrap/ustring.i deleted file mode 100644 index d693e7dc..00000000 --- a/otk/wrap/ustring.i +++ /dev/null @@ -1,40 +0,0 @@ -// SWIG typemaps for otk::ustring - -%{ -#include "otk/ustring.hh" -%} - -namespace otk { - - class ustring; - - /* Overloading check */ - - %typemap(typecheck) ustring = char *; - %typemap(typecheck) const ustring & = char *; - - %typemap(in) ustring { - if (PyString_Check($input)) - $1 = otk::ustring(PyString_AsString($input)); - else - SWIG_exception(SWIG_TypeError, "ustring expected"); - } - - %typemap(in) const ustring & (otk::ustring temp) { - if (PyString_Check($input)) { - temp = otk::ustring(PyString_AsString($input)); - $1 = &temp; - } else { - SWIG_exception(SWIG_TypeError, "ustring expected"); - } - } - - %typemap(out) ustring { - $result = PyString_FromString($1.c_str()); - } - - %typemap(out) const ustring & { - $result = PyString_FromString($1->c_str()); - } - -} |
