OSI/MHS Gateway Programmatic Interface (GPI) Programming Guide
GPI Object Management
OSI/MHS Gateway Programmatic Interface (GPI) Programming Guide—424822-001
3-14
Attribute Position and Value Position
The information contained in the descriptors of each of these attributes also is depicted.
For example, the type, syntax and value for the class attribute for object X is shown as:
where, in this simplified example, Object X is the class name of this object (and
Object_X_ID is that object’s identifier).
As shown, a class attribute occupies attribute position 0 in both object X and object Y.
In fact, in every object, the class attribute is always at attribute position 0.
The GPI service inserts the other attribute types in an order that is based on the integer
constants defined for each type. For instance, although it is not shown in this example,
you can assume the constant defined for type A is less than that for type C, which is less
than that for type H, and so on.
Figure 3-11. Attribute Position and Value Position
OM-T-Class OM-S-Integer Object X
Note. When an object of any class is generated by the GPI service, a class attribute is
inserted automatically into that object at attribute position 0. An object is generated as the
result of either the GPI_OM_CREATE_ or GPI_OM_COPY_ procedure. A class attribute can
be inspected, but it cannot be removed or modified.
311CDT .CDD
OBJECT X (OBJECT_X_ID)
Attribute Type A
OM-S-Object
Object_Y_ID
1
0
OM-T-Class
OM-S-Integer
Object X
OBJECT Y (OBJECT_Y_ID)
Attribute Type H
Syntax of H
Value of H
1
OM-T-Class
OM-S-Integer
Object Y
0
2
Attribute Type C
Syntax of C
Value 0 of C
Value 1 of C
Value 2 of C
Value 3 of C
• • •
18
Attribute Type W
Syntax of W
Value of W
Attribute Type H
Syntax of H
Value of H
3