C++ Data and Function Interfaces
To generate efficient C++ code that easily plugs into your existing software architecture, configure a C++ class interface. When you generate a C++ class interface from a model, the model appears as a class, data elements appear as class members, and model functions appear as class methods. Configuring a C++ class interface, interactively or programmatically, allows you to configure:
Class information — Class name and namespace
Class member information — Class member data visibility and access method
Class method information — Class method names and arguments
You can use these customizations to quickly adjust the generated interface from rate-based and export-function models to meet your application integration requirements.
|Code Mappings – C++ Editor||Configure how model elements and functions appear in generated C++ code|
|Model data and interface configuration for C++ code generation|
Create and Find C++ Code Mappings
Configure C++ Class Interface
|Get class name of model|
|Set class name of model|
|Get class namespace for a model|
|Set class namespace of model|
|Get code mapping configuration for model data|
|Configure model data for C++ code generation|
|Get code configuration from code mappings for model function|
|Set code mapping information for model function|
- C Code Generation Configuration for Model Interface Elements
Control the representation of model data elements and functions in generated C code.
- Interactively Configure C++ Interface
Interactively configure the C++ class generated from a Simulink® model.
- Programmatically Configure C++ Interface
Programmatically configure the C++ class generated from a Simulink model.
- Manage Multiple Code Mappings for a Model
Design models that are platform-neutral and ready to deploy to different run-time environments.