Closed SchrodingersGat closed 5 years ago
The "dependsOn" parameter only checks for non-zero values (e.g. bitfield). It might be considered useful to have a secondary parameter "dependsOnValue" which (if present) complements "dependsOn" and compares the value of the named variable.
e.g.
<Data name="foo" inMemoryType="unsigned8"/> <Data name="bar" inMemoryType="unsigned8" dependsOn="foo" dependsOnValue="0xBA"/> <Data name="cat" inMemoryType="unsigned8" dependsOn="foo" dependsOnValue="0xCA"/> <Data name="dog" inMemoryType="unsigned8" dependsOn="foo" dependsOnValue="0xD0"/>
In this example at most one of [bar | cat | dog] will be encoded / decoded (depending on the value of foo)
Done in 2.16
The "dependsOn" parameter only checks for non-zero values (e.g. bitfield). It might be considered useful to have a secondary parameter "dependsOnValue" which (if present) complements "dependsOn" and compares the value of the named variable.
e.g.
In this example at most one of [bar | cat | dog] will be encoded / decoded (depending on the value of foo)