C++ Daten- und Funktionsschnittstellen
Konfigurieren Sie eine C++ Code-Klassenschnittstelle, um effizienten C++ Code zu generieren, der sich leicht in Ihre bestehende Softwarearchitektur integrieren lässt. Wenn Sie eine C++ Klassenschnittstelle aus einem Modell generieren, erscheint das Modell als eine Klasse, Datenelemente erscheinen als Klassenmitglieder und Modellfunktionen als Klassenmethoden. Bei der interaktiven oder programmatischen Konfiguration einer C++ Klassenschnittstelle können Sie Folgendes konfigurieren:
Klasseninformationen – Klassenname und -Namespace
Klassenmitglied-Informationen – Datensichtbarkeit und Zugriffsmethode des Klassenmitglieds
Klassenmethoden-Informationen – Klassenmethodennamen und -Argumente
Mithilfe dieser Anpassungen können Sie die generierte Schnittstelle von ratenbasierten Modellen und Exportfunktionsmodellen schnell an Ihre Anwendungs-Integrationsanforderungen anpassen.
Tools
| Code Mappings – C++ Editor | Configure how model elements and functions appear in generated C++ code |
Objekte
coder.mapping.api.CodeMappingCPP | Model data and interface configuration for C++ code generation |
Funktionen
Themen
- C Data Code Interface Configuration for Model Interface Elements
Control the representation of model data elements and functions in generated C code by using a data code interface configuration.
- 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.
- Configure Parameters for C++ Interface Code Generation
Configure and generate code for instance-specific or shared parameters.
- Manage Multiple Code Mappings for a Model
Design models that are platform-neutral and ready to deploy to different run-time environments.
- Generate Individual C++ Namespaces for Architectural Data Types
Example of generating C++ namespaces for architectural data types.
- Configure C++ Entry-Point Function Interfaces for Simulink Function and Function Caller Blocks
Customize C++ entry-point function names and step function arguments for Simulink Function and Function Caller blocks.


