Prev Next

C Options - Model

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

  • Specify default file extensions (header and source)
  • Define support for Object Oriented programming
  • Set the StateMachine engineering options
  • Specify the Collection Class definitions for Association connectors

Access

Ribbon

Configure > Model > Options > Source Code Engineering > C

Options

Option

Action

See also

Options for the current model

In the value fields, specify these options:

  • 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

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 StateMachine 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

Notes

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

Learn more