On Wed, 14 May 2003 zmoelnig@iem.at wrote:
all the classes should well compile under all OS's (although the preprocesser would maybe strip them to the plain dummy class film (wh�ch wouldn't be able to load anything) but it is true that i haven't quite done it that way, but made lot's of #ifdef's around the lib-dependent code.
Hi,
I have taken a look at the new film classes, and I have to say that I am not fully convinced by the design.
If every platform has to go through this, it might be good to give it a little bit of thought.
The cleanest solution would be to have the decoder (film) classes register themselves with the system if they are linked in, and not call their constructors from the pix_filmNEW.
(This can be done for example by instantiating a global class in each filmXXX implementation, where the constructor registers itself)
This would save the #ifdefs that are currently in the filmXXX classes.
Guenter