Set (Named Data Type)

From wiki.fine.cz
Revision as of 18:48, 21 March 2022 by Petr.Bures (talk | contribs)
Jump to navigation Jump to search

Used to store a multiple values from a list of enumeration elements.

Common Properties

Enumeration properties
Property Template XML Description
Prefer ident [A] BOOL PreferIdent If TRUE, while composing the set description the Ident properties of enumeration elements are used, if defined, otherwise Name property is used
Item [:E:] Item List of elements (only the enumeration element type can be used)
Indent     [A] INT Level     Indentation of individual elements of the enumeration (zero or absence means unindented), it is written as an attribute to the elements, but it is stored with the set

Example of the Template XML

<Item ID="{EFEC9E11-6FFD-44B9-9FC8-AC6F1E892461}" ItemType="Set">

  <Name .... />

  <Comment .... />

  <Settings />

  <Item ID="{E3237AF4-3F69-44F9-BD34-EA5BF71D5A3A}" ItemType="EnumItem">

    <Name ... />

    <Settings IsHeading="true" />

  </Item>

  <Item ID="{F14426ED-878B-4B30-ACF0-EC7062DDEA80}" ItemType="EnumItem">

    <Name .... />

  </Item>

<Item ID="{A99658F7-FD21-4F12-B1B8-7159E8C78F34}" ItemType="EnumItem" Level="1">

    <Name .... />

  </Item>

</Item>

Example of the Data XML

<Item ID="{EFEC9E11-6FFD-44B9-9FC8-AC6F1E892461}" EnumValue="{A99658F7-FD21-4F12-B1B8-7159E8C78F34}" />

ID and EnumValue can be either a GUID or a unique text identifier.