Code Template API Functions summarizes the code template API. See the source code
in
for detailed information on the arguments, return values, and operation of these calls. matlabroot
/rtw/c/tlc/mw/codetemplatelib.tlc
Code Template API Functions
Function | Description |
---|---|
| Clears a file section with custom values before writing file to disk. |
| Returns the number of created source files ( |
| Returns |
| Creates a new C or C++ file and returns its reference. If the file already exists, simply returns its reference. |
| Returns a model file name (including the path) without the extension. |
| Returns a model file reference based on its index. This is useful for a common operation on all files, such as to set the leading file banner of all files. |
| Adds to the contents of a specified section within a specified file (see also Custom File Processing (CFP) Template Structure). |
| Indents a file (from within the TLC environment). |
| Returns code for calling the model's
|
| Returns code for calling the model's
|
| Returns code for calling the model's
|
| Returns code for calling the model's set events function (valid for ERT only). |
| Returns data for the model (valid for ERT only). |
| Returns the code to set the model error status. |
| Returns the code to get the model error status. |
| Returns true if model is single rate and false otherwise. |
| Returns name of the model (without an extension). |
| Returns the name of model's main source file (for example,
|
| Returns the name of model's public header file (for example,
|
| Returns the name of the model's private header file (for example,
|
| Returns |
| Returns the code to write to a particular root input (that is, a model inport block). (valid for ERT only). |
| Returns the code to write to a particular root output (that is, a model outport block). (valid for ERT only). |
| Returns the code to write to root inputs (that is, all model inport blocks). (valid for ERT only) |
| Returns the code to write to root outputs (that is, all model outport blocks). (valid for ERT only). |
| Returns the number of discrete sample times in the model. |
| Set the code template to be used for generating a specified source file. |
| Set the folder into which a specified source file is to be generated. |
| Add a custom section to a source file. The custom section must be
associated with one of the built-in (required) sections:
|
| Adds to the contents of a specified custom section within a specified
file. The custom section must have been previously created with
|