Open lenlope opened 6 years ago
Is this part of the XTCE standard? We don't use a lot of XTCE internally here at Ball so it isn't going to be high on our priority list. If you want to take a stab at implementing this all the XTCE code is contained in xtce_parser.rb. Please read our contributer information.
Most of us support or try to support both for 1.1. For 1.2, I believe we fixed it to the name/label is specified instead of the value.
Hi @lenlope ! I do not know if you found the answer but you may use the structure given below:
In XTCE, whenever I use a parameterRef that references a parameter of type, EnumeratedParameterType, I'd like to be able to specify the value with the enum label instead of the integer value. This is so that if the enum values ever change, I don't have to update the values everywhere they are used. See example below:
Given an enum type:
Parameter declaration (desired):
<xtce:Parameter name="Test" parameterTypeRef="TestEnum" initialValue="ZERO"/>
Parameter usage (desired);
I would like this to work similarly for command arguments, as well. Let me know if you also need an example of this.