Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Plugin system

Name: Anonymous 2005-07-31 22:10

How would you write a plugin system for an image-processing application where one plugin is "dependant" on another plugin? For example I have an histogram plugin who has to call the grayscale plugin before showing the histogram. I could hard-code the grayscale function but it's ugly and I would have to do the same for a lot of other plugins.

I'm writing this in Qt (Trolltech) and C++, and I use the QLibrary object (not that it really matters...)

Name: Anonymous 2005-08-04 12:14

>>17
Yes you're right, I shouldn't have mentioned trees since the possibility of circular dependencies immediately screams "not a tree!"

I'd still rather use recursion though since stacks are so useful in graphical algorithms, and with recursion we get one for free :)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List