PySide Binding Generation Tutorial: Module 3 Creating Type System Description: Difference between revisions
Jump to navigation
Jump to search
AutoSpider (talk | contribs) (Convert ExpressionEngine links) |
AutoSpider (talk | contribs) (Change category "LanguageBindings::PySide::Shiboken::PySide Binding Generation Tutorial" -> "PySide") |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Category | [[Category:PySide]] | ||
'''English''' [http://qt-devnet.developpez.com/tutoriels/python/pyside/binding-shiboken/#LV French] | '''English''' [http://qt-devnet.developpez.com/tutoriels/python/pyside/binding-shiboken/#LV French] | ||
* '''Note:''' this article is a member of the multipart [ | * '''Note:''' this article is a member of the multipart [https://wiki.qt.io/PySide_Binding_Generation_Tutorial PySide Binding Generation Tutorial] | ||
= Creating the Type System Description = | = Creating the Type System Description = | ||
Line 16: | Line 15: | ||
<typesystem package="foo"> | <typesystem package="foo"> | ||
<load-typesystem name="typesystem_core.xml" generate="no" /> | <load-typesystem name="typesystem_core.xml" generate="no" /> | ||
<object-type name="Math" / | <object-type name="Math" /> | ||
</typesystem> | </typesystem> | ||
</code> | </code> |
Latest revision as of 05:06, 5 June 2016
English French
- Note: this article is a member of the multipart 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.
<?xml version="1.0"?>
<typesystem package="foo">
<load-typesystem name="typesystem_core.xml" generate="no" />
<object-type name="Math" />
</typesystem>