コード テンプレート
生成コードの編成と形式のカスタマイズ
コード生成テンプレートを使用して、カスタム コード バナーを追加し、データと関数を再配置し、追加のコード セグメントとドキュメンテーションを生成コード ファイルに挿入します。
トピック
コード テンプレート
- コードの編成と形式のカスタマイズ
カスタム ファイル処理 (CFP) ツールを使用して、生成コードの編成と形式をカスタマイズする。 - Template Symbols and Rules
Overview of template symbols and rules for using them.
コード生成テンプレート
- コード生成テンプレート ファイル
コード生成テンプレート (CGT) ファイルを使用して、生成されるソース ファイルとヘッダー ファイルの最上位の編成と形式を定義する。 - Generate Custom File and Function Banners
Specify custom file and function banners for generated code files using code generation template (CGT) files. - Change the Organization of a Generated File
Use data and code templates to change the organization of generated files.
カスタム ファイル処理テンプレート
- Custom File Processing Templates
Impose a simple structure on the code generation processing using a custom file processing (CFP) template. - Generate Source and Header Files with a Custom File Processing Template
Generate a simple source (.cor.cpp) and header (.h) file using example CFP template. - Comparison of a Template and Its Generated File
Use a template to define what code the code generator adds to the generated file, control the location of code in the file, and optionally insert comments in the generated file. - Code Template API Summary
Use Code template API functions to obtain the names of the standard model files and other model-related information..
