summaryrefslogtreecommitdiff
path: root/wrap/ustring.i
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-17 21:25:52 +0000
committerDana Jansens <danakj@orodu.net>2003-02-17 21:25:52 +0000
commit4534151926c4f3887ba9e37ae67df16f1eb039ef (patch)
treeb375f8ce60754639795ae99d59e1be44d52f9b0b /wrap/ustring.i
parent1741bddecb23bfc401397222c9961233bb30a87a (diff)
split up the otk stuff into separate files.
wrap otk::Property properly with typemaps so that it is usable. wrap otk::Timer properly so that you can use it with a python callback
Diffstat (limited to 'wrap/ustring.i')
-rw-r--r--wrap/ustring.i40
1 files changed, 0 insertions, 40 deletions
diff --git a/wrap/ustring.i b/wrap/ustring.i
deleted file mode 100644
index 06addfe2..00000000
--- a/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, "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());
- }
-
-}