Files
powertrain-build/tests/powertrain_build/reference_files/enums/EnumTest.m
Lindgren f939ff9242 Allow comments in enum definition file
This change allow comments around the enum member definitions in matlab
enum definition files. The comments is not transfered to the generated
source code.

Change-Id: I1770f1cdfc8e9cba83f58417c1d0b03a17ecb1d3
2025-01-29 09:20:41 +01:00

29 lines
676 B
Matlab

classdef EnumTest < Simulink.IntEnumType
enumeration
% Test comment 1
ClimaOff(0)
ClimaHeatgToHvacAndHvBatt(1) % Test comment 2
ClimaHeatgToHvBatt(2)
ClimaHeatgToHvac(3)
ClimaFlow(4)
Degas(5)
FailSafe(6)
end
methods (Static)
function retVal = getDescription()
retVal = 'EnumTest';
end
function retVal = getDefaultValue()
retVal = EnumTest.ClimaOff;
end
function retVal = getDataScope()
retVal = 'Exported';
end
function retVal = addClassNameToEnumNames()
retVal = true;
end
end
end