C++ modularization framework (like OSGi) ?

2019-02-02 03:20发布

I found one SOF http://www.codeproject.com/KB/library/SOF_.aspx , Are there anyother stable frameworks for modularization in C++ ?

7条回答
手持菜刀,她持情操
2楼-- · 2019-02-02 03:56

The authors of the open source Portable Components library (POCO) have also developed a modular framework based on OSGI called OSP or Open Service Platform. http://www.appinf.com/en/products/osp.html. It's not open source however.

查看更多
做自己的国王
3楼-- · 2019-02-02 03:56

I've never seen a solution to the whole problem, but I implemented something similar using Qt 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.

查看更多
该账号已被封号
4楼-- · 2019-02-02 03:57

The OSGi4Cpp tries to implement the OSGi specification in C++.

查看更多
萌系小妹纸
5楼-- · 2019-02-02 04:06

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 .

查看更多
叼着烟拽天下
6楼-- · 2019-02-02 04:08

I found this write-up which gives a status as of April 2012. Definitely worth reviewing OSGi and C++ frameworks overview.

查看更多
7楼-- · 2019-02-02 04:11

Apache Celix is an OSGi implementation for C and C++ http://celix.apache.org/

查看更多
登录 后发表回答