开发者

Implementing extensible code in C++ [closed]

开发者 https://www.devze.com 2023-01-28 02:06 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 4 years ago.

Improve this question

I am currently busy with a project where the main focus of the application is to be extensible (allow 3rd party developers to write plugins / their own implementations of interfaces).

Until now, I have been using Java, and built the application on the NetBeans platform. This has works perfectly fine and is quite easy to implement.

However, the program is quite computationally intense, and must be run on a grid of computers. I think C++ might be better suited for massive comput开发者_运维技巧ations like I need.

What I would like to know. Is there any libraries like the NetBeans platform for C++. Or would I have to implement everything from scratch (not that I mind, I just wat to know)? Also, how easy is it to write extensible code with C++ and implement something like an update center? This is stuff you get for free with the NetBeans platform. My experience with the using the platform is that it allows you to write very modular code, which is something I like. New modules can be installed independantly, while the platform provides discovery of services to find all the installed plugins / impementations.

Can this be done similarly in C++?

Thanks!


I recommend that you have a look at the Qt framework. They offer a mechanism to create plugins. Have a look at this free online book about Qt. Plugins are discussed in chapter 21.


For modularity on binary level Boost.Extension might be a good choice.

For autoupdate there is for example Google's Omaha (Windows) or Update Engine (OS X)

0

精彩评论

暂无评论...
验证码 换一张
取 消