FTAM/9000 Programmer's Guide

Chapter 3 69
HP FTAM/9000 Data Structures
Using Defined Constants To Set Bits
Using Defined Constants To Set Bits
Certain structures require that you use defined constants to set bits to
request specific items like attributes, actions, and concurrency control.
You request an item by setting a bit to ON (1). Refer to the following
table for a list of defined constants and their corresponding structures.
Use the defined constant to set the bits to either ON (1) or OFF (0).
Setting bits other than those listed results in an error.
If needed, set the bit by first defining a variable. Use the appropriate
defined constant to set the bit you want.
EXAMPLE
This example sets the filename and contents_type attributes in the
variable called attribute_names.
Ft_attribute_names attribute_names;
attribute_names = (FT_AN_FILENAME | FT_AN_CONTENT_TYPE);
Defined Constants Corresponding Structures
FT_FA_XXX Ft_file_actions
FT_AG_XXX Ft_attribute_ groups
FT_AN_XXX Ft_attribute_names
FT_AC_XXX Ft_access_control_element
FT_PA_XXX Ft_permitted_actions
FT_FT_XXX Ft_functional_units
FT_PM_XXX Ft_processing_mode
FT_SC_XXX Ft_service_class