FTAM/9000 Programmer's Guide
Chapter 3 123
HP FTAM/9000 Data Structures
Ft_data_unit
Ft_node_descriptor
struct Ft_node_descriptor {
Ft_fadu_name fadu_name;
Uint16 arc_length;
Bool data_exists;
};
Set Ft_node_descriptor if you specified FT_NODE_DESC in
Ft_structure_id (Figure 3-10).
Use Ft_node_descriptor only with FTAM-2 document types to begin a
new FADU.
FTAM-1 FTAM-2 FTAM-3 and INTAP-1 NBS-9
IA5_STRING
GENERAL_STRING
GRAPHIC_STRING
GENERAL_STRING
GRAPHIC_STRING
GENERAL_STRING
OCTET_STRING ATTRIBUTE
primitive The primitive is the specific unit that contains actual data. Set primitive to the
value specified by prim_type. See the previous table. Note that the maximum
string length is 7168 (7K) octets.
EXAMPLE: This example sets a data_element for FTAM-2 document type.
struct Ft_data_unit data_unit;
data_unit.next = NULL;
data_unit.structure_id = FT_DATA_UNIT;
data_unit.data.data_element = (struct Ft_data_element *)
malloc(sizeof (struct Ft_data_element));
data_unit.data.data_element->prim_type = FT_DE_GRAPHIC_STRING;
data_unit.data.data_element->primitive.graphic_string =
“This example shows data in a data element;”