gmplTypedefStatement

Typedef Statement Summary

Typedef is a terminal, declaration statement that occurs only in description files authored from IDL-- i.e., external COM components. Its purpose is to supply an alternative identifier for a type. Typedefs are not moved forward into the authored code. Rather whenever a type specification is read, if it is a typedef, then the actual type is substituted.

The attributes of the Typedef statement are as follows:

Attribute Description
Id This attribute is the identifier of the typedef. It must be unique within the scope of the library containing it. The identifier is not case-sensitive.
Type This attribute is a Type attribute as discussed on the Declaration page. It specifies the type that will be associated with any component that defines its type using the identifier of this typedef.

The script errors associated with the Typedef statement are as follows:

Error Description
1055 Typedef command missing required id attribute.
1056 Unable to store typedef vector: %1d
1057 Typedef command missing required type attribute.


Table of Contents