TDK model configuration options (TDK)
The TDK configuration options are specified through the Language property of the Model and the Generator stereotype that is applied to the Model. The tagged values you set for the Generator stereotype's tag definitions determine how the Code Generator DLL is generated.
For the provided TDK models that can generate multiple ACS Code Generator DLLs, you can set default values for the Tag Definitions in Modeler for each ACS Code Generator DLL by right-clicking the model, and then clicking the appropriate Build Settings command for the ACS Code Generator DLL you want to generate.
• To create a new ACS Code Generator DLL that overwrites a provided ACS Code Generator DLL:
Right-click the TheGenerator package, point to Build Settings, and then click the command for the ACS Code Generator DLL you want to overwrite.
• To create a new ACS Code Generator DLL that does not overwrite a provided ACS Code Generator DLL:
Right-click the TheGenerator package, point to Build Settings, and then click the command for the ACS Code Generator DLL type you want to generate. After setting up the TDK model for the ACS Code Generator DLL type you want to generate, right-click the TheGenerator package, point to Build Settings, and then click Custom Generator so that the name of the generated ACS Code Generator DLL is based on the name of the model.
|
Build Settings commands require the TheGenerator package and its child Packages to be unprotected. To unprotect the Packages: open the TheGenerator package's Property Pages, click the Access Permissions tab, clear the Protected check box, and then click the Copy Protected Flag to Child Packages button. |
The options you select are used to create a
Maker.cfg file. For more information about the
Maker.cfg file, see
Maker.cfg configuration file (TDK).
The Language property of the Generator package specifies the code language you want to generate. You can use C, CPP, ADA95, ADA83, JAVE, C_Sharp and VB. For SPARK 83 use ADA83, for SPARK 95 use ADA95, and for IDL select use C_Sharp.
|
In previous release of Modeler, the Language was set through the Language tag definition that was applied by the Generator stereotype.
|
The Generator stereotype applies the following tag definitions:
• Maker
Contains the main text of the Maker.cfg file. Do not change this text.
• ConfigurationList
Specifies the possible configurations, as follows:
◦ VS2015Release — to build using Microsoft Visual C++ 2015 (Visual C++ 14.0), including the Express version, in Release mode.
◦ VS2015Debug — to build using Microsoft Visual C++ 2015 (Visual C++ 14.0), including the Express version, in Debug mode.
◦ VS2017Release — to build using Microsoft Visual C++ 2017 (Visual C++ 15.0), including the Express version, in Release mode.
◦ VS2017Debug — to build using Microsoft Visual C++ 2017 (Visual C++ 15.0), including the Express version, in Debug mode.
◦ VS2019Release — to build using Microsoft Visual C++ 2019 (Visual C++ 16.0), including the Express version, in Release mode.
◦ VS2019Debug — to build using Microsoft Visual C++ 2019 (Visual C++ 16.0), including the Express version, in Debug mode.
◦ GccRelease — to build using GNU GCC compiler version 3.4.4 in Release mode.
◦ GccDebug — to build using GNU GCC compiler version 3.4.4 in Debug mode.
A debug build will provide more diagnostics information that a release build, which is useful when developing an ACS Code Generator DLL. However, a debug build will take longer to generate code than a release build.
• LangFolder
Specifies the Modeler System folder in which to create the ACS Code Generator DLL. Select the required folder.
• Harness
Specifies whether the Select Harness Class pane appears on the Simulation tab of the Launch ACS/TDK dialog. If you select TRUE, the Select Harness Class pane is shown and if you select FALSE, the Select Harness Class pane is not shown.
If the Harness and UsesStubs tag definitions are set to FALSE, the Simulation tab is not shown on the Launch ACS/TDK dialog.
• TemplateList
Specifies the name of the ACS Code Generator DLL for each configuration.
• SchemeValue
Specifies the language that is specified in the Scheme.ini file. Select the required language.
• TabSize
Specifies the number of spaces you want to represent each indent in the generated code files. The value you specify is used only if you select TRUE in the Insert Spaces list.
• InsertSpaces
Specifies whether you want to use tabs or spaces to indent text in the generated code files. If you select FALSE, tabs are generated. If you select TRUE, spaces are used (the number of spaces used for each indent is specified through the TabSize tag definition).
• LineTerminator
Specifies whether you want to terminate each line with a carriage return and line feed (CRLF), or only a line feed (LF). If you want to generate code files for use in a UNIX environment, select the LF option.
• BodyIndent
This tag definition is not used at present.
• SchemeText
Specifies text to include in the Scheme.ini file.
• ImportDirectory
Specifies the folder from which the generation templates were imported (not applicable to TDK Code Generation Transformation Patterns models).
• UsesStubs
specifies whether the Select Classes to Stub pane appears on the Simulation tab on the Launch ACS/TDK dialog. If you select TRUE, the Select Classes to Stub pane is shown and if you select FALSE, the Select Classes to Stub pane is not shown.
If the Harness and UsesStubs tag definitions are set to FALSE, the Simulation tab is not shown on the Launch ACS/TDK dialog.
• MDAGenerator — DEPRECATED