Generating for C++

When generating with C++, the files generated are generated for classes and interfaces.

A header file with the .h extension, and a source file with the .cpp extension are generated per classifier.

A generation log file is also created after generation.

  1. Select Language > Generate C++ Code to display the Generation dialog box.
  2. Type a destination directory for the generated file in the Directory box.

    or

    Click the Select a Path button to the right of the Directory box and browse to select a directory path.

  3. Select the objects to include in the generation from the tabbed pages at the bottom of the Selection page.
    Note: All classes of the model, including those grouped into packages, are selected and displayed by default. You use the Select tools to the right of the Folder Selection list to modify the selection. The Include Sub-Packages tool allows you to include all classes located within packages.
  4. Click the Options tab to display the Options page.
  5. <optional> Select the Check Model check box if you want to verify the validity of your model before generation.
  6. Select a value for each required option.
  7. Click the Tasks tab, then select the required task(s).
  8. Click OK to generate.

    A Progress box is displayed. The Result list displays the files that you can edit. The result is also displayed in the Generation page of the Output window, located in the bottom part of the main window.

    All C++ files are generated in the destination directory.