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 />

NAME<br />

adf - application data format<br />

DESCRIPTION<br />

The Application Data Format (ADF) is a file format designed to<br />

support data interchange between different applications. ADF is<br />

an ASCII format with predefined keywords and tokens .<br />

ADF consists of five basic data types: file operations, text,<br />

numeric, graphic, and spreadsheet, along with their subtypes.<br />

In addition to the basic data types, there are higher order data<br />

types, such as tuples, tables, and groups, which are collections<br />

of basic data types.<br />

Each data type starts with a keyword, which is followed by a<br />

number of arguments depending on the keyword. Each keyword<br />

always appears at the beginning of a line, and is always terminated<br />

with white space (ASCII tab or space) or a new line character.<br />

All keywords accept either type of terminator. White<br />

space at the beginning of the line is ignored.<br />

In some cases, the arguments of keywords are also keyed, and in<br />

this case the reserved words are used to introduce argument values<br />

which are referred to as tokens . Tokens always appear at the<br />

beginning of the line, and are terminated with white space or new<br />

line characters.<br />

Keywords that are followed by arguments of indefinite length or<br />

number use braces to delimit the arguments that belong to the<br />

keyword. These braces may be nested, and the matching end<br />

brace terminates the keyword definition.<br />

Any line beginning with the pound sign (#) character is ignored.<br />

In this way comments may be embedded in an ADF file. An<br />

exception to this rule is in the text data type, where a pound sign<br />

may end up at the beginning of a line.<br />

All lines are required to be less than 80 characters in length.<br />

The ADF file begins with the ADF keyword, which identifies it as<br />

an ADF file, followed by the VERSION keyword and the APPLI­<br />

CATION keyword. The initial version of ADF is VERSION 1.0.<br />

The APPLICATION keyword identifies the source of the ADF file.<br />

Following this header are an arbitrary number of data items, and<br />

the file ends with the EOF keyword.<br />

File Operations<br />

ADF supports the moving and copying of entire files and file folders.<br />

The FILOP data type has the following format:<br />

FILOP {<br />

SOURCE <br />

NAME <br />

SOURCE <br />

- 1 -

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

Saved successfully!

Ooh no, something went wrong!