开发者

Database schema to C++ Code Generator

开发者 https://www.devze.com 2023-02-08 19:53 出处:网络
I want to know if there is an open source or proprietary software that开发者_Python百科 I can use to generate a C++ code from a database schema.If you want to generate classes for your tables, getters

I want to know if there is an open source or proprietary software that开发者_Python百科 I can use to generate a C++ code from a database schema.


If you want to generate classes for your tables, getters/setters for the data & inheritance/composition/aggregation for the relationships in your tables you can do this by creating a domain specific language for handling your task. Compiler-Compiler tools like lex/yacc can be of help to you. You can define a grammar (this wont be very easy task for your problem statement) and then use lex/yacc to solve your problem.

0

精彩评论

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