Generate C++ enum class from MATLAB® enumeration
Whether to generate C++ enumeration classes for MATLAB enumerations
Since R2022a
Description
App Configuration Pane: C++ Language Features
Configuration Objects: coder.MexCodeConfig
| coder.CodeConfig
| coder.EmbeddedCodeConfig
When the language standard is C++11 or newer, convert MATLAB enumerations to C++ enumeration classes. If this option is not selected, the code generator produces C++ code that contains ordinary C enumerations.
Dependencies
Setting the Language parameter to C++
enables this
parameter.
Settings
- On
The code generator converts MATLAB enumerations to enumeration classes in the generated C++ code. This setting is only supported if the Language Standard is set to
C++11
or a newer standard. This setting is the default.- Off
The code generator produces ordinary C enumerations for MATLAB enumerations in the generated C++ code.
Programmatic Use
Property:
CppGenerateEnumClass |
Values: true |
false |
Default: true |
Version History
Introduced in R2022a