Main Content

Parameter visibility

Description

Specify whether to generate the block parameter structure as a public, private, or protected data member of the C++ model class.

Category: Code Generation > Interface

Settings

Default: private

public

Generates the block parameter structure as a public data member of the C++ model class.

private

Generates the block parameter structure as a private data member of the C++ model class.

protected

Generates the block parameter structure as a protected data member of the C++ model class.

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 an Embedded Coder® license when generating code.

Command-Line Information

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

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precaution

No recommendation

Related Topics