Previous Topic: Attribute DefinitionNext Topic: Access Statement


Type Statement

The mandatory type statement in the attribute definition describes the storage and semantic characteristics of the attribute being defined. The syntax is:

type = datatype

Datatype is usually one of the data types previously defined.

A data type may be an enumeration; stored and treated as a signed 32-bit integer. Enumerations that have been previously defined (at the component level) can be referenced by name, as if they were a type, for example: type = "Color." Enumerations may also be constructed "in line":

type = start enum
	(enum definition
	end enum

In this case, the enumeration does not need a name, since it cannot be referred to outside the scope of this attribute definition. Any name given is ignored.

Only one type statement can appear in the attribute definition.