Modelio Cxx Designer provides a convenient new feature used to preview the Cxx code that will be generated for a selected model element.

The preview field renders the Cxx code according to the element properties that are currently set in the dialog box in real time. This means that you can immediately observe the effect of your input on the generated code and consequently avoid errors during the early stages of Cxx application development.

For example, let’s edit the properties of a package.  We will first preview the code that will be generated for this element.

image
Previewing the code that will be generated for a package

Note: The code preview function is implemented by specific code preview templates. These preview templates are consistent with code generation templates, so preview is always consistent with the generated code, even if the generation templates are modified.