Tweet this page

Tweet this
If you find this useful, tweet.
Inhalt
Tweets
Member of

Code generation by sample

This page demonstrates the design of a prototype application based on the sample 'CDKatalog' you will find as Youtube video.

The design of the UML model is very simple to ease starting with UML modeling and generating a prototype and then creating code for your desired framework and language.

Here you see the UML model with the attributes per class in the left tree view:

CDKatalogUML-600.png
 

I will not show the prototype in action but rather a code generator for a mixture of code (wxWidgets and my database API). Typical code generator template will look like as follows:

Codegenerator-wxDataViewCtrl-600.png
 

Now you will see the template code and the generated code (snipped):

Codegenerator-wxDataViewCtrl-Sample-600.png
 

(246 Reads)