aboutsummaryrefslogtreecommitdiffstats
path: root/doc/typesystem_manipulating_objects.rst
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-10-23 15:41:56 -0200
committerHugo Lima <hugo.lima@openbossa.org>2009-10-23 15:41:56 -0200
commita7880bedd92bfed75908c055eae641610f6f6ca2 (patch)
treed27bbd9dc7cd8f4ba2ad09c1b8d71455568900c9 /doc/typesystem_manipulating_objects.rst
parent8e21edd40416a0d6dd87afb6405f4f0443caca83 (diff)
Added documentation for tag conversion-rule.
Diffstat (limited to 'doc/typesystem_manipulating_objects.rst')
-rw-r--r--doc/typesystem_manipulating_objects.rst18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/typesystem_manipulating_objects.rst b/doc/typesystem_manipulating_objects.rst
index 9428df7e2..34b5f7194 100644
--- a/doc/typesystem_manipulating_objects.rst
+++ b/doc/typesystem_manipulating_objects.rst
@@ -97,3 +97,21 @@ add-function
</object-type>
The ``return-type`` attribute defaults to *void*, and the ``access`` to *public*.
+
+.. _conversion-rule:
+
+conversion-rule
+^^^^^^^^^^^^^^^
+
+ The conversion-rule node allows you to write customized code to convert the given argument between the target
+ language and C++, and is a child of the :ref:`value-type`, :ref:`object-type`, :ref:`primitive-type` and
+ :ref:`container-type` nodes.
+
+ The code pointed by the file attribute is very tied to the generator using APIExtractor, so it don't follow any
+ rules, but the generator rules..
+
+ .. code-block:: xml
+
+ <value-type name="Foo">
+ <convertion-rule file="my_converter_implementation.h" />
+ </value-type>