[英]Application design for exchanging values between C/C++ and Python
I'm writing a C/C++ application, this application is used directly by the user to give inputs, basically numerical values like a precise values, a range and something like that, think about an UI with some pieces like: 我正在编写一个C / C ++应用程序,这个应用程序直接由用户使用来提供输入,基本上是数值,如精确值,范围等类似的东西,考虑一下如下的UI:
and this is the C/C++ part, i expect to get just a bunch of values from this piece of code, the problem is that this values: 这是C / C ++的一部分,我希望从这段代码中得到一堆值,问题是这个值:
i don't know of any design that can fit my request mainly because: 我不知道任何能满足我要求的设计主要是因为:
That's how i would describe my problem and what i'm aiming to do, if something is not clear please comment. 这就是我如何描述我的问题以及我想要做的事情,如果事情不明确请发表评论。
recap : how to provide Python API from a C++ application using a signal/slot design in real time? 回顾 :如何使用信号/插槽设计实时从C ++应用程序提供Python API?
Thanks. 谢谢。
Check out Boost.Python . 查看Boost.Python 。 It's a library which allows to use Python as a scripting language for a C++ program. 它是一个允许使用Python作为C ++程序脚本语言的库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.