Re: [pygccxml-development] Abstract Classes
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2006-05-31 04:50:58
|
On 5/31/06, Lakin Wecker <lak...@gm...> wrote: > In Ogre, a frequent design used is to define an abstract base class, > (Say RenderWindow). Along with a Manager/Factory that creates that > window for you. Then the platform specific implementations of those > classes are built to actually do the work. > > However, the API dictates that you ask the Manager/Factory for an > implementation of RenderWindow (you don't care which), and you then > use it as a generic RenderWindow interface. > > > In py++, how do I model this? I don't want to expose the platform > specific implementations of the classes, as they're not needed. But I > do need to somehow let the python run time know about the > AbstractClass so that when I ask the Manager for one, I can use it > from Python. > > When I directly include the class in the ouput, I get a compile error > because of the lack of implementations ... of some methods. I could be wrong, but it should work out of the box. I will check this at home. > Anyways, I'm going to sleep now. See you all in a few hours. Good night > Lakin -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |