이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
C++ 데이터 및 함수 인터페이스
기존 소프트웨어 아키텍처에 쉽게 삽입할 수 있는 효율적인 C++ 코드를 생성하려면 C++ 클래스 인터페이스를 구성하십시오. 모델에서 C++ 클래스 인터페이스를 생성하면 모델은 클래스로 나타나고, 데이터 요소는 클래스 멤버로 나타나고, 모델 함수는 클래스 메서드로 나타납니다. C++ 클래스 인터페이스를 대화형 또는 프로그래밍 방식으로 구성하면 다음을 구성할 수 있습니다.
클래스 정보 - 클래스 이름 및 네임스페이스
클래스 멤버 정보 - 클래스 멤버 데이터 가시성 및 액세스 방법
클래스 메서드 정보 - 클래스 메서드 이름 및 인수
이러한 사용자 지정을 사용하면 레이트 기반 및 함수 내보내기 모델에서 생성된 인터페이스를 신속하게 조정하여 애플리케이션 통합 요구 사항을 충족할 수 있습니다.
툴
코드 매핑 – C++ 편집기 | Configure how model elements and functions appear in generated C++ code (R2021a 이후) |
객체
coder.mapping.api.CodeMappingCPP | Model data and interface configuration for C++ code generation (R2021a 이후) |
함수
도움말 항목
- 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.