想用C++实现java的LiteFlow框架,如果仿照java写一套工作量有点大,c++有没有可以利用的框架或相近的,
以下贴上LiteFlow框架的链接,供各位参考,请各位伸出援助之手,谢谢啦!
https://liteflow.yomahub.com/pages/5816c5/#%E5%89%8D%E8%A8%80
UPDATE 要清楚,我想知道的有类似功能的Java的东西,所以,下面可能是典型的语法:
// assumptions:
// * my_list is a standard library iterable of ints
// * f is a function of int that returns a std::string
// * p is a predicate of std::string returning bool
// * head_opt returns an option type
stream(my_list).map(f).filter(p).head_opt.get_or_else("None")
UPDATE 要清楚,我想知道的有类似功能的Java的东西,所以,下面可能是典型的语法:
// assumptions:
// * my_list is a standard library iterable of ints
// * f is a function of int that returns a std::string
// * p is a predicate of std::string returning bool
// * head_opt returns an option type
stream(my_list).map(f).filter(p).head_opt.get_or_else("None")
蹲
直接转转不了,要不就是按照框架重新编译,要不然就是找到API进行调用。你可以尝试使用C++调取java的LiteFlow
Apache C++ Standard Library : 是一系列算法,容器,迭代器和其他基本组件的集合
ASL : Adobe源代码库提供了同行的评审和可移植的C++源代码库。
Boost : 大量通用C++库的集合。
BDE : 来自于彭博资讯实验室的开发环境。
Cinder : 提供专业品质创造性编码的开源社区