c++ - Generate C++ function automatically
问题描述
I am looking for an automated solution to generate C++ source with some function prototypes from provided configuration. The input is something similar below in an xml
<xml>
<function="myfunction1" params="arg1" type="integer" return="void">
</xml>
the automatic code generator shall produce code as below
void myfunction1(int arg1)
{
//your logic here
}
How this can be achieved generally ? Is there any C++ automatic code generation framework already available which can be slightly modified to achieve above ?
解决方案
推荐阅读
- chef-infra - 试图配置 ruby 环境,但我发出命令 echo 'evaluation "$(chef shell-init bash)"' >> ~/.bash_profile 它什么也没做
- postgresql - Spring Data JPA with Postgres 动态修改列问题
- html - 是否可以使用 jinja2 在模态中注入 html 文件?
- typescript - 如何在 Vue.js 中获取当前活动路由?
- ibm-midrange - iSeries/as400 绑定目录 我必须修复一个程序。我需要字段类型和长度
- python - 秤的RS232端口
- python - Python,使用win32gui获取父前台窗口标题
- javascript - 在 for 循环中创建 JavaScript 对象并在不同的 for 循环中使用唯一对象
- typescript - TypeScript:从样式化的函数组件和样式化的系统类型中提取类型
- python - ValueError:查询数据维度必须匹配训练数据维度