RTW.ModelCPPClass class
Package:RTW
Superclasses:
Control C++ class interfaces for models
Description
TheModelCPPClass
class is the base class for the classesRTW.ModelCPPArgsClass
andRTW.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 theattachToModel
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 eitherRTW.ModelCPPArgsClass
orRTW.ModelCPPDefaultClass
.
Methods
attachToModel | Attach model-specific C++ class interface to loaded ERT-based金宝appmodel |
getClassName | Get class name from model-specific C++ class interface |
getDefaultConf | Get default configuration information for model-specific C++ class interface from金宝appmodel |
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 |
Alternatives
TheConfigure C++ Class Interfacebutton on theInterfacepane 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. SeeCustomize C++ Class Interfaces Using Graphical Interfaces.