// Version: $Id$ // // // Commentary: // // // Change Log: // // // Code: %module(directors="1") dtkcore %include %include %{ #include #include #include #include #include #include %} %feature("director"); // ///////////////////////////////////////////////////////////////// // Macro undefinition // ///////////////////////////////////////////////////////////////// #undef DTKCORE_EXPORT #define DTKCORE_EXPORT %pythonappend dtkObjectManager::value(const QString &key) const %{ method_name = "to" + val.typeName().strip("*") try: method = getattr(val, method_name) return method() except: print "can't convert to real type, return a QVariant" return val %} // ///////////////////////////////////////////////////////////////// // Wrapper input // ///////////////////////////////////////////////////////////////// %include %include %include %include %include %template(dtkArrayInt) dtkArray; %template(dtkArrayDouble) dtkArray; // // dtkCore.i ends here