주요 콘텐츠

이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

C++ 데이터 및 함수 인터페이스

Simulink 모델에서 생성된 C++ 클래스를 제어합니다.

기존 소프트웨어 아키텍처에 쉽게 삽입할 수 있는 효율적인 C++ 코드를 생성하려면 C++ 클래스 인터페이스를 구성하십시오. 모델에서 C++ 클래스 인터페이스를 생성하면 모델은 클래스로 나타나고, 데이터 요소는 클래스 멤버로 나타나고, 모델 함수는 클래스 메서드로 나타납니다. C++ 클래스 인터페이스를 대화형 또는 프로그래밍 방식으로 구성하면 다음을 구성할 수 있습니다.

  • 클래스 정보 - 클래스 이름 및 네임스페이스

  • 클래스 멤버 정보 - 클래스 멤버 데이터 가시성 및 액세스 방법

  • 클래스 메서드 정보 - 클래스 메서드 이름 및 인수

이러한 사용자 지정을 사용하면 레이트 기반 및 함수 내보내기 모델에서 생성된 인터페이스를 신속하게 조정하여 애플리케이션 통합 요구 사항을 충족할 수 있습니다.

코드 매핑 – C++ 편집기Configure how model elements and functions appear in generated C++ code

객체

coder.mapping.api.CodeMappingCPPModel data and interface configuration for C++ code generation

함수

모두 확장

coder.mapping.api.getGet code mappings for model
coder.mapping.utils.createCreate code mappings object for configuring data and function interface for C and C++ code generation
findGet model elements for the category of model code mappings
getClassNameGet class name of model
setClassNameSet class name of model
getClassNamespaceGet class namespace for a model
setClassNamespaceSet class namespace of model
getDataGet code mapping configuration for model data
setDataConfigure model data for C++ code generation
getFunctionGet code configuration from code mappings for model function
setFunctionSet code mapping information for model function

도움말 항목

추천 예제