This chapter deals with the setup of the FML environment. Before you can begin to work with FML fielded buffers, or use the VIEWS functions that move fields between structures and fielded buffers, you have to take care of such details as setting environment variables appropriate for your application. These activities are described in this chapter.
The delivered FML software will reside in a subtree of the local file system. Several of the FML modules assume that the structure of this subtree is as described in this section. It is assumed that the environment variable Introduction
Directory Structure
TUXDIR
is set to the full pathname of the installation directory for the BEA TUXEDO system software. The sub-directories are:
include
-contains header files needed by writers of C application code.
C application software using FML must include the following header files in this order:
The file Several environment variables are used by FML and VIEWS. This section gives a summary of their use.
The following variable is used in FML to search for system supplied files:
#include <stdio.h> #include "fml.h"
fml.h
or fml32.h
contains definitions for structures, symbolic constants, and macros used by the FML software.
Environment Variables
TUXDIR
-this variable should be set to the topmost node of the installed BEA TUXEDO system software including FML.
The following variables are used throughout FML to access field table files (described in Chapter 4, "Field Definition and Use,"):
FIELDTBLS
-This variable should contain a comma separated list of field table files for the application. Files given as full path names are used as is; files listed as relative path names are searched for through the list of directories specified by the FLDTBLDIR
variable. FIELDTBLS32
is used for FML32
. If FIELDTBLS
is not set, then the single file name fld.tbl
is used. (FLDTBLDIR
still applies; see below.)
VIEWFILES
-This variable should contain a comma separated list of object viewfiles for the application. Files given as full pathnames are used as is; files listed as relative path names are searched for through the list of directories specified by the VIEWDIR
variable (see below). VIEWFILES32
is used for VIEW32
.