PySide Binding Generation Tutorial: Module 3 Creating Type System Description
Jump to navigation
Jump to search
[toc align_right="yes" depth="3"]
English "French":http://qt-devnet.developpez.com/tutoriels/python/pyside/binding-shiboken/#LV
- Note: this article is a member of the multipart "PySide Binding Generation Tutorial":http://developer.qt.nokia.com/wiki/Category:LanguageBindings::PySide::Shiboken::PySide_Binding_Generation_Tutorial
Creating the Type System Description
The type system is a specification that maps a C++ based library onto a corresponding Python module. The specification is a handwritten XML document listing the types that will be available in the generated binding, modifications to classes and function signatures to better suit the target language, and listing the components that should be rejected for the binding.
<br />&lt;?xml version="1.0&quot;?&gt;<br /><typesystem package="foo&quot;><br /> <load-typesystem name="typesystem_core.xml&quot; generate="no&quot; /&gt;<br /> &lt;object-type name="Math&quot; /&amp;gt;<br /></typesystem&gt;<br />