[pygccxml-development] class hierachy with pure virtual .
Brought to you by:
mbaas,
roman_yakovenko
From: Damien F. <dam...@mo...> - 2008-08-13 11:14:23
|
Hi , so here is my case : /// Module A /// __BIND__ class Base { /// __BIND__ void foo() = 0; } /// __BIND__ class BaseImp : public Base { void foo() { // do something default } } /// Module B /// __BIND__ class Usefull : public BaseImp { void foo() { // do something usefull } } I use doxygen to expose classes or methodes , ///__BIND__ is the trigger . Module A and B and build in too different process , and come for different libs . Module A is loaded before Module B. Class Base shouldnt/cant be overriden in python . the problem that I am having is that when I call Usefull.foo() I get an exeption on calling a pure virtual function . and its kinda make sense when I look at the wrapper for Base::foo can I tell py++ that I dont want a pureVirtual to be declare are such ? also can I force py++ to not enable virtual methods overwriting ? I guess that I could try to write the implemation of those class manually but py++ is doign such a good job that I have become very lasy :) thanks Damien |