diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2010-03-02 14:34:01 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-03-02 17:18:20 -0300 |
commit | 3a4263a603b8caa4f93dcd534971bf7ffaf65e9f (patch) | |
tree | fc98bf94b965e9f5f35c7150463b4966d7620e49 /tests/samplebinding | |
parent | ac7573693042bc8f9d4d94958d89d5b15add39f2 (diff) |
Use polymorphic-id-expression to discover the correct type of a C++ object.
Diffstat (limited to 'tests/samplebinding')
-rw-r--r-- | tests/samplebinding/typesystem_sample.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml index 597bed610..40bb840ef 100644 --- a/tests/samplebinding/typesystem_sample.xml +++ b/tests/samplebinding/typesystem_sample.xml @@ -53,6 +53,7 @@ <enum-type name="Overload::FunctionEnum"/> <enum-type name="Overload::ParamEnum"/> <enum-type name="Event::EventType"/> + <enum-type name="Abstract::Type"/> <namespace-type name="SampleNamespace"/> @@ -60,7 +61,7 @@ <modify-function signature="id()" rename="id_"/> </object-type> - <object-type name="Derived"/> + <object-type name="Derived" polymorphic-id-expression="%1->type() == Derived::TpDerived" /> <value-type name="Derived::SomeInnerClass" /> <object-type name="ObjectType"> |