[pygccxml-development] Abstract Classes
Brought to you by:
mbaas,
roman_yakovenko
From: Lakin W. <lak...@gm...> - 2006-05-31 04:47:07
|
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. Anyways, I'm going to sleep now. See you all in a few hours. Lakin |