Package: RTW
Superclasses:
Control C++ class interfaces for models
The ModelCPPClass
class is the base class for the classes RTW.ModelCPPArgsClass
and RTW.ModelCPPDefaultClass
, which provide objects that describe C++ class
interfaces for models using either an I/O arguments style step method or a default style
step method. Use the attachToModel
method to attach a C++
class interface to a loaded ERT-based Simulink® model.
To access the methods of this class, use the constructor for either RTW.ModelCPPArgsClass
or RTW.ModelCPPDefaultClass
.
attachToModel | Attach model-specific C++ class interface to loaded ERT-based Simulink model |
getClassName | Get class name from model-specific C++ class interface |
getDefaultConf | Get default configuration information for model-specific C++ class interface from Simulink model |
getNamespace | Get namespace from model-specific C++ class interface |
getNumArgs | Get number of step method arguments from model-specific C++ class interface |
getStepMethodName | Get step method name from model-specific C++ class interface |
setClassName | Set class name in model-specific C++ class interface |
setNamespace | Set namespace in model-specific C++ class interface |
setStepMethodName | Set step method name in model-specific C++ class interface |
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.