01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ADF (4) (AT&T UNIX PC only ) ADF ( 4)<br />

Keyword Meaning<br />

SCHEMA<br />

TUPLE<br />

TABLEDEF<br />

TABLE<br />

GROUP<br />

Define fields for the TUPLE data<br />

type<br />

A collection of data items in the<br />

same form as a preceding<br />

SCHEMA<br />

Table layout definition<br />

A rectangular array of data items<br />

A collection of graphics objects<br />

The SCHEMA keyword is followed by a series of FIELDn tokens,<br />

one for each field being defined. Following each FIELDn token are<br />

NAME, TYPE, and SIZE tokens. These tokens are optional<br />

except for the TYPE token, which is required. For example:<br />

Keyword/Token<br />

SCHEMA {<br />

FIELD!<br />

NAME <br />

TYPE <br />

SIZE <br />

FIELD2<br />

Meaning<br />

Start definition for field one<br />

is an ASCII text<br />

string which is the field<br />

name<br />

< t > is the data type of<br />

the field. Must be one of<br />

the previously defined basic<br />

data types.<br />

< n > is the field length in<br />

bytes<br />

Start definition for field two<br />

}<br />

The TUPLE keyword is followed by a series of arguments, which<br />

are data items. The number of data items following TUPLE is<br />

the same as the number of fields defined in the preceding<br />

SCHEMA. Numeric data items can be typed in without their keyword,<br />

but other data items (text in particular) must include their<br />

keyword. The matching end brace terminates the TUPLE. The<br />

following is a TUPLE with one text field and two numeric fields:<br />

TUPLE {<br />

TEXT Sample string \EOT\<br />

25 43.671<br />

}<br />

The TABLEDEF keyword takes two arguments, the width and<br />

height of the table. It is optionally followed by a series of tokens<br />

which provide default information for the rows and columns of the<br />

table. It also contains information necessary to parse the formulas<br />

of the table.<br />

- 9-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!