Database schema to C++ Code Generator
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.
精彩评论