summaryrefslogtreecommitdiff
path: root/wrap/otk_ustring.i
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-21 18:43:51 +0000
committerDana Jansens <danakj@orodu.net>2003-03-21 18:43:51 +0000
commitb2babc8b0a97b68791304ce899d10a4835db45fb (patch)
treef54eb8b0c1139193c6f4d68412aab8bf217e5343 /wrap/otk_ustring.i
parenta52a6d96d701c993896f276e4198003317632aaf (diff)
rm the obsetroot tool and the wrap shit from swig
Diffstat (limited to 'wrap/otk_ustring.i')
-rw-r--r--wrap/otk_ustring.i40
1 files changed, 0 insertions, 40 deletions
diff --git a/wrap/otk_ustring.i b/wrap/otk_ustring.i
deleted file mode 100644
index fbd0cbfa..00000000
--- a/wrap/otk_ustring.i
+++ /dev/null
@@ -1,40 +0,0 @@
-// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
-
-%module otk_rendertexture
-
-%{
-#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, "string 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, "string expected");
- }
- }
-
- %typemap(out) ustring {
- $result = PyString_FromString($1.c_str());
- }
-
- %typemap(out) const ustring & {
- $result = PyString_FromString($1->c_str());
- }
-}