From pykde Fri Oct 25 16:17:00 2002 From: "Sato, Kristine" Date: Fri, 25 Oct 2002 16:17:00 +0000 To: pykde Subject: [PyKDE] Class inheritance X-MARC-Message: https://marc.info/?l=pykde&m=103556275623840 Hello, I am using SIP to wrap some of my own C++ classes. Given this class hierarchy, class ObBase { ObBase *GetParent(); } case ObLevel1 : ObBase { } case ObLevel2 : ObLevel1 { } When ObBase::GetParent() gets wrapped, it eventually calls return sipMapCppToSelf(res,sipClass_ObBase); However, the parent may in fact be an ObLevel1 or ObLevel2. How can I get SIP (or do I just need to write the code myself) to return the correct object type? Thank you, Kristine _______________________________________________ PyKDE mailing list PyKDE@mats.gmd.de http://mats.gmd.de/mailman/listinfo/pykde