RTW.ModelCPPClass class

Package: RTW
Superclasses:

Control C++ class interfaces for models

Description

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.

Construction

To access the methods of this class, use the constructor for either RTW.ModelCPPArgsClass or RTW.ModelCPPDefaultClass.

Methods

attachToModelAttach model-specific C++ class interface to loaded ERT-based Simulink model
getClassNameGet class name from model-specific C++ class interface
getDefaultConfGet default configuration information for model-specific C++ class interface from Simulink model
getNamespaceGet namespace from model-specific C++ class interface
getNumArgsGet number of step method arguments from model-specific C++ class interface
getStepMethodNameGet step method name from model-specific C++ class interface
setClassNameSet class name in model-specific C++ class interface
setNamespaceSet namespace in model-specific C++ class interface
setStepMethodNameSet step method name in model-specific C++ class interface

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.