Prev Next

C++ Options - User

If you intend to generate C++ code from your model, you can configure the code generation options using the 'C++ Specifications' page of the 'Preferences' dialog.

Access

Ribbon

Start > View > Preferences > Source Code Engineering > C++

Keyboard Shortcuts

Ctrl+F9

Options

Option

Action

See also

Disable Language

Leave this checkbox unselected to support C++ code generation.

Select this option to disable C++ code support.

Options for the current user

In the value fields, specify the options that apply under your own user ID in all models that you access:

  • The default attribute type to create
  • Whether Namespaces should be generated when generating C++ Classes
  • What style to apply when generating and processing comments for C++
  • Whether to generate comments for C++ methods to the declaration, or reverse engineer comments from the declaration
  • Whether to generate comments for C++ methods to the implementation, or reverse engineer comments from the implementation
  • Whether to update comments in re-generating code from the model
  • Whether to update the implementation file in re-generating code from the model
  • The default source code directory location (click on the button)
  • The default file extensions to read when importing a directory of C++ code
  • The Code Editor to use (click on the button)
  • The search path for the implementation file relative to the header file path

Learn more