In a MIF file, groups are used to arrange one or more attributes into logical sets. You can also use groups to represent tables, which are made up of arrays of attributes. You can use multiple group definitions within a single component definition.

The syntax of a group definition is:

start group
      name = "group name"
      class = "class string"
      [id = nnn]
      [description = "description string"]
      [key = nnn[,mm]...]
      [pragma = "pragma string"]
      (attribute definitions go here)

end group

If you include an ID statement in the group definition, the value of the ID statement must be unique among other groups within the component.

The relationship between the ID statement and the key statement in the group definition affects whether the group is interpreted as a group, a table, or a table template. ID and Key Statements in MIF describes how the two statements can be used. ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ Table 4. ID and Key Statements in MIF ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ KEY ³ ID ³ MIF INTERPRETATION ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ No ³ Yes ³ The group is interpreted as a simple scalar group. ³
³ ³ ³ The ID statement identifies the group. ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ Yes ³ No ³ The group represents a template row in a table ³
³ ³ ³ that is defined later in the MIF file. The value ³
³ ³ ³ statements on the attribute definitions refer to ³
³ ³ ³ default values within the row. A table definition ³
³ ³ ³ can be used to populate the table according to the ³
³ ³ ³ template. For more information, read ³
³ ³ ³ Sample Table Definition. ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ Yes ³ Yes ³ The group represents a table that is managed by ³
³ ³ ³ the component's instrumentation code. Any table ³
³ ³ ³ definitions you use later in the component can use ³
³ ³ ³ this definition as a template. ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ


[Back] [Next]