There is also BlueBerry http://www.blueberry-project.org which implements a component based framework inspired by OSGi. It also comes with an application framework similar to the Eclipse RCP.
A rewrite of the BlueBerry core can be found in the CTK PluginFramework library (based on Qt Core):Introduction, GitHub Code .
I've never seen a solution to the whole problem, but I implemented something similar usingQt plugins.
The part Qt did nicely (that C++ by itself doesn't implement) was handling C++ OO interfaces in dynamically loadable modules. Because of C++ name-mangling being non-standard, usually DLLs don't have C++ interfaces, only C interfaces. Qt did it with it's meta-object system, and it worked really cleanly for me.

本文探讨了多种模块化框架,包括基于OSGi的OSP、开源Portable Components (POCO)及BlueBerry等,并介绍了使用Qt插件实现类似功能的方法。
3618

被折叠的 条评论
为什么被折叠?



