File customization template - Template for custom file processing - MATLAB (original) (raw)

Main Content

Template for custom file processing

Model Configuration Pane: Code Generation / Templates

Description

Specify the custom file processing (CFP) template file to use when generating code.

Settings

'example_file_process.tlc' (default) | TLC file

Default: 'example_file_process.tlc'

You can use a CFP template file to customize generated code. A CFP template file is a TLC file that organizes types of code (for example, includes, typedefs, and functions) into sections. The primary purpose of a CFP template is to assemble code to be generated into buffers, and to call a code template API to emit the buffered code into specified sections of generated source and header files. The CFP template file must be located on the MATLABĀ® path.

Application Setting
Debugging No impact
Traceability No impact
Efficiency No impact
Safety precaution No impact

Programmatic Use

Parameter: ERTCustomFileTemplate
Type: character vector
Value: valid TLC file
Default: 'example_file_process.tlc'

Version History

Introduced before R2006a