summaryrefslogtreecommitdiffstats
path: root/libshiboken/bindingmanager.h
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-08-30 11:19:22 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-08-30 17:44:16 -0300
commit1eda671a34eba38e7e74e592e4ae88fa6803bcba (patch)
treea7abd551d478f100579067b948e1a17103aedcfb /libshiboken/bindingmanager.h
parent3dc673c7bcbad1613b9d3d6ff3dd4a73be41915d (diff)
downloadshiboken-1eda671a34eba38e7e74e592e4ae88fa6803bcba.tar.gz
shiboken-1eda671a34eba38e7e74e592e4ae88fa6803bcba.tar.xz
shiboken-1eda671a34eba38e7e74e592e4ae88fa6803bcba.zip
Fix the type resolver algorithm.
The new algorithm do the following: - Try to use type_info on the object the get the object real name. - Try to find a type resolver with the name returned by type_info. - If a type resolver was found, get the python type. - Else, ask binding manager to resolve the type walking on all possible subclasses found in the inheritance tree. The binding manager has a graph representing the class inheritance tree. Note: This commit break the libshiboken ABI, but not the API. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Ara├║jo <renato.araujo@openbossa.org>
Diffstat (limited to 'libshiboken/bindingmanager.h')
-rw-r--r--libshiboken/bindingmanager.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libshiboken/bindingmanager.h b/libshiboken/bindingmanager.h
index 150baa90..dd18dcdc 100644
--- a/libshiboken/bindingmanager.h
+++ b/libshiboken/bindingmanager.h
@@ -42,6 +42,7 @@ namespace Shiboken
{
struct SbkBaseWrapper;
+struct SbkBaseWrapperType;
class LIBSHIBOKEN_API BindingManager
{
@@ -73,6 +74,8 @@ public:
transferOwnershipToCpp(reinterpret_cast<SbkBaseWrapper*>(wrapper));
}
+ void addClassInheritance(SbkBaseWrapperType* parent, SbkBaseWrapperType* child);
+ SbkBaseWrapperType* resolveType(void* cptr, SbkBaseWrapperType* type);
private:
~BindingManager();
// disable copy