C Options

If you intend to generate C code from your model, you can configure the code generation options using the C Specifications page of the Options dialog to:

Support Object Oriented coding
Indicate default file extensions (header and source)
Indicate default source directory
Indicate an editor for C code
Specify a path that Enterprise Architect uses to search for the implementation file; the first path in the list is the default path when generating
 

Access     Tools | Options | Source Code Engineering | C

Options

Field

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 model

In the value fields, specify the options that affect all users of the current model:

The default header and source file extensions for the code files
Support for Object Oriented programming; if this is True, then set:
The Namespace delimiter character
Whether the first parameter of an operation is a Class reference
The parameter reference style in generated C code
The reference parameter name in generated code
The default Constructor name in generated code
The default Destructor name in generated code
 

These options do not apply to other models.

 

 

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 (fixed as int)
Whether a #define constant is imported as an attribute in imported C code (if Object Oriented programming is set to True)
Whether to generate comments for C methods to the declaration, and to reverse engineer comments from the declaration
Whether to generate comments for C methods to the implementation, and to reverse engineer comments from the implementation
Whether to update comments in regenerating 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 Browse button - ( ... ))
The default file extensions to read when importing a directory of C code
The Code Editor to use (click on the Browse button - ( ... ))
The search path for the implementation file relative to the header file path

 

 

Statemachine Engineering

In the value fields, use the drop-down arrows to set the options to True or False; these options apply to generating code from State Machine models in the current model only:

Use the new Statemachine Template - set to True to use the code generation  templates from Enterprise Architect Release 11 and later, set to False to apply the EASL Legacy templates
Generate Trace Code - set to True to generate Trace code, False to omit it

 

 

 
 
Legacy State Machine Templates

Collection Classes

Click on this button to open the Collection Classes for Association Roles dialog, through which you specify the collection class definitions for Association connectors.

 

Collection Classes

Learn more