wrap c++ objects with inheritance



Can anyone point me to documentation or examples of how to wrap C++
objects with gobject and preserve inheritance? I want to do something
like this:

ClassA
ClassB (inherits from ClassA)

and wrap in gobject like this:

GClassA
GClassB

and I need to be able to cast GClassB back to GClassA. GClassA will
have as a private member a pointer to ClassA, and GClassB will have a
pointer to ClassB. What's the most elegant way to do this?

Thanks,
Matthew



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]