External I/O visibility

Description

Specify whether to generate the root-level I/O structure as a public, private, or protected data member of the C++ model class.

Category: Code Generation > Interface

Settings

Default: private

public

Generates the root-level I/O structure as a public data member of the C++ model class.

protected

Generates the root-level I/O structure as a protected data member of the C++ model class.

private

Generates the root-level I/O structure as a private data member of the C++ model class.

Tips

The generated code reduces the MISRA C++ 2008 Rule 11-0-1 violations.

Dependencies

  • This parameter appears only for ERT-based targets with parameter Language set to C++ and parameter Code interface packaging set to C++ class.

  • This parameter requires Embedded Coder® when generating code.

  • This parameter is not enabled when External I/O access is set to None.

Command-Line Information

Parameter: ExternalIOMemberVisibility
Type: character vector
Value: 'public' | 'private' | 'protected'
Default: 'private'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precaution

No recommendation

Related Topics