Changing DataType Information

If any objects you add to Builder Xcessory use a new data type, you need to specify a WML DataType. A DataType is specified in the WML file as follows:

DataType <datatype name> {
<datatype attribute>;
<datatype attribute>;
<...>;
};

DataTypes can have the following attributes:

CanBeApp

Syntax

CanBeApp = True | False;

Used By

Builder Xcessory only.

Description

Resource values of this type can be put in an application defaults file.

CanBeCode

Syntax

CanBeCode = True | False;

Used By

Builder Xcessory only.

Description

Resource values of this type can be hard-coded in the generated source code.

CanBeEmpty

Syntax

CanBeEmpty = True | False;

Used By

Builder Xcessory only.

Description

The empty (NULL) string is acceptable for resource values of this type. Builder Xcessory should not interpret a NULL value as meaning to reset the resource value to its default value.

TypeName

Syntax

TypeName = "ConverterTypeName";

Used By

Builder Xcessory and Code Generator.

Description

This value is the to_type used by XtConvertAndStore. Builder Xcessory and the code generator use this when converting strings to actual resource values. For example, the basic datatype, integer, has a TypeName of "Int".

TypeSize

Syntax

TypeSize = sizeofBoolean | sizeofChar | sizeofDouble |         sizeofFloat | sizeofInt | sizeofLong | sizeofPointer |         sizeofShort;

Used By

Builder Xcessory only.

Description

Indicates the size in bytes of the variable that holds the value of this datatype. The actual size of the type is determined dynamically by Builder Xcessory, and can vary from platform to platform.

In addition to the aforementioned attributes, all other attributes defined in the OSF/Motif documentation for DataTypes are parsed, but ignored by Builder Xcessory.

Documentation: