RTW.ModelCPPArgsClass class

Package: RTW
Superclasses: RTW.ModelCPPClass

Control C++ class interfaces for models using I/O arguments style step method

Description

The ModelCPPArgsClass class provides objects that describe C++ class interfaces for models using an I/O arguments style step method. Use the attachToModel method to attach a C++ class interface to a loaded ERT-based Simulink® model.

Construction

RTW.ModelCPPArgsClassCreate C++ class interface object for configuring model class with I/O arguments style step method

Methods

See the methods of the base class RTW.ModelCPPClass, plus the following methods.

getArgCategoryGet argument category for Simulink model port from model-specific C++ class interface
getArgNameGet argument name for Simulink model port from model-specific C++ class interface
getArgPositionGet argument position for Simulink model port from model-specific C++ class interface
getArgQualifierGet argument type qualifier for Simulink model port from model-specific C++ class interface
getPreviewGet model-specific C++ class interface step function prototype code preview
runValidationValidate model-specific C++ class interface against Simulink model
setArgCategorySet argument category for Simulink model port in model-specific C++ class interface
setArgNameSet argument name for Simulink model port in model-specific C++ class interface
setArgPositionSet argument position for Simulink model port in model-specific C++ class interface
setArgQualifierSet argument type qualifier for Simulink model inport in model-specific C++ class interface

Copy Semantics

Handle. To learn how this affects your use of the class, see Copying Objects.

Alternatives

The Configure C++ Class Interface button on the Interface pane of the Simulink Configuration Parameters dialog box launches the Configure C++ class interface dialog box, where you can flexibly control the C++ class interfaces that are generated for your model. Once you validate and apply your changes, you can generate code based on your C++ class interface modifications. See Customize C++ Class Interfaces Using Graphical Interfaces.