LieberLieber Embedded Engineer comes with a set of options which influence the UI and code generation.
These options can be set for each View of a model, and are stored in the model.
Version 2.6 Update
Model Settings update:
- Settings can now be stored on each package level
- Only changed settings will be stored as Tagged Values
- Settings will be inherited from the parent packages
- Settings from parent packages can be overwritten in subsequent packages
- JSON-Formated settings can be read
To open the settings for your model, go to Extensions → LieberLieber Embedded Engineer 2.x → Model Settings...
The Treeview will now represent the structure of your current Package list and its inheritance structure.
Available Settings
Setting | Description | Default Value | Version |
---|---|---|---|
Code Editor | |||
Code Editor Save Strategy | Allows the user to choose what should happen if unsaved changes are present in the new code editor dialog. DiscardChanges: Will discard any changes made without prompting the user. AutoSaveChanges: Will save any changes made without prompting the user. PromptUser: Will prompt the user to eather save or discard unsaved changes. | DiscardChanges | 3.0 |
Code Generation | |||
Always Generate Signals | Always update the signals enumeration before generating code? | No | 2.0 |
Clang-Format Style Options | Options used by Embedded Engineer and Clang Format to format the output code | { | 2.1 |
Generate includes in .c file | Generates includes in .c instead of .h file | No | 2.0 |
Sync User Code | Perform the User Code Synchronization and the comments required for this feature? | Yes | 2.0 |
Code Generation - Advanced | |||
Activity Code Generation | Generate code for activities? | True | 2.0 |
AnsiC class instantiation strategy | CreateInstanceAndFunction: The statically allocated instance and accessing function for the current class will be generated CreateStaticInstance: The statically allocated instance for the current class will be generated CreateNothing: Will skip the generation for the statically allocated instance and accessing function for the current class | CreateInstanceAndFunction | 2.6 |
Consider define scope | If set will take "private/public" scope of <define> Attributes into consideration during generation. (private defines will be generated into the .c file) | No | 2.3 |
Generate Directories for Packages | Will generate a sub folder for each sub package of the current package. | No | 2.1 |
Generate 'origin of code' comment | If set will generate a //User-supplied code: [UmlType] '[ElementName]', [ElementGuid] for every user-supplied code (e.g.: OpaqueActions, Behaviors,...) | No | 2.3 |
Include Path Delimiter | Delimiter to use for include path generation | / | 2.1 |
MISRA Compliance Enabled | Generate redundant statements to maintain MISRA compliance? | True | 2.0 |
Position of field comments | Customize where to put the comments of a field (BeforeField, AfterField, AfterFieldIfSingleLine) | AfterFieldIfSingleLine | 2.1 |
State Machine Code Generation | Generate code for state machines? | True | 2.0 |
Single Class instance mode | If Yes: Will omit generation of the "me/this" pointer in Class Operations and will access the statically allocated field instead. | No | 2.6 |
Single State Machine instatnce mode | If Yes: Will omit generation of the "stm" pointer in State Machine Operations and will access the statically allocated struct field instead. | No | 2.6 |
State Machine Code Generation | Generate code for State Machines? | True | 2.0 |
User Code storage field | Define if usercode will be stored in Initial Code or Behavior field of Enterprise Architect | InitalCode | 2.1 |
Write comment before include | Customize where to put the include comment | False | 2.1 |
Traceability | |||
Add Requirement Comments | Add comments for linked requirements? | Yes | 2.0 |
UML Debugger | |||
Generate UML Debugger Information | Generate debugging information to be used by the UML Debugger? | Yes | 2.0 |
User Interface | |||
Auto Close Progress Window | Automatically close the progress window if no errors/warnings have been detected? | No | 2.0 |
C++-Code Generation Enabled | Show the entries for C++ Code Generation in the Embedded Engineer menus? | Yes | 2.0 |
C-Code Generation Enabled | Show the entries for C Code Generation in the Embedded Engineer menus? | Yes | 2.0 |
Show "Generate Signals and Code" | Show the entry "Generate Signals and Code"? Useful when activating the option Always Generate Signals. | Yes | 2.0 |