Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

C++ Options

Configure options for C++ code generation using the C++ Specifications page of the Options dialog.

Access:     Tools | Options | Source Code Engineering > C++

Use to:

  • Indicate the version of C++ to generate; this controls the set of templates used and how properties are created
  • Specify the default reference type used when a type is specified by reference
  • Specify the default file extensions
  • Specify default Get/Set prefixes
  • Define additional Collection Classes - to define custom collection classes, which can be simple substitutions (such as CArray<#TYPE#>) or a mix of other strings and substitutions (such as Cmap<CString,LPCTSTR,#TYPE#*,#TYPE#*>); the following collection classes are defined by default:
  • CArray<#TYPE#>;CMap<CString,LPCTSTR,#TYPE#*,#TYPE#*>;
  • Specify a default source directory
  • Specify the path that Enterprise Architect uses to search for the implementation file; the first path in the list is the default path when generating new implementation files and parsing existing files - if you add further directories, Enterprise Architect also searches these when parsing existing files




See also

Disable Language

Indicates that C++ is to be disabled


Options for the current model

Specifies the options used in the current model

These options affect all users of the current model; however, they do not apply to other models


Options for the current user

Specifies the options used for the current user; these options apply to all models that are accessed by the user


Collection Classes

Opens the Collection Classes for Association Roles dialog, which allows the specification of collection class definitions

Collection Classes