moin Zoltan, could you provide some more information for the use of GenericElementFactory? Are the macros you defined supposed to be used from other plugins as well? Then this code shouldn't be inside a plugin. At least to me, this looks quite generic. Then the plugins would only be used to define specific instances of components. This could look like:
// my cool resistor implementation DECLARE_ELEMENT_FACTORY(KTechLab::Element::Resistor); REGIST ER_ELEMENT_FACTORY(ElementFactory<KTechLab::Element::Resistor>); class KTechLab::Element::Resistor: public IElement { //implementation }; It would be cool to be able to just provide support for new components like this. (Okay, one still needs to create visual representation, but this is easy, too.) bye then julian
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________ Ktechlab-devel mailing list Ktechlab-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ktechlab-devel