首页 > 解决方案 > 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 ?

标签: c++code-generation

解决方案


推荐阅读