[ Previous | Next | Contents | Glossary | Home | Search ]
The graPHIGS Programming Interface : Subroutine Reference

GPTAST - Transfer All Structures

GPTAST (ssid, flag)

Purpose

Use GPTAST to copy all structures from a specified structure store to the currently selected structure store. Both the source and target structure stores can reside on the same or different nuclei. If the specified structure store is the currently selected structure store, then no action is taken.

If any structure within the specified structure store already exists in the currently selected structure store, then the graPHIGS API resolves the conflict according to the conflict resolution flag. If there is a conflict and the resolution flag is set to 1=MAINTAIN , then the graPHIGS API only transfers structures that do not conflict and there is no change to any existing structure. When the conflict resolution flag is set to 2=ABANDON , the graPHIGS API does not transfer any structures and issues an error. When the flag is set to 3=UPDATE , the graPHIGS API transfers every structure. The conflicting structure replaces the new one without changing any associations to a workstation or view.

Note:

The graPHIGS API empties the structure in the target structure store before it copies the source structure. If an error occurs (such as the copying of a structure cannot be completed), then the original structure cannot be reconstructed.

When you replace a structure that is an open structure, the structure remains open and is emptied, but the graPHIGS API does not remove references to the structure. The result is as though you had issued the following:

  1. GPCLST - Close Structure

  2. GPEST - Empty Structure

  3. GPTST - Transfer Structures

  4. GPOPST - Open Structure
  5. If your application transfers an execute structure-type element that refers to a non-existing structure, then the graPHIGS API creates an empty structure.

    Parameters

    ssid -- specified by user, fullword integer

    Structure store identifier.

    flag -- specified by user, fullword integer

    Conflict resolution flag (1=MAINTAIN, 2=ABANDON, 3=UPDATE )

    Error Codes

    12
    FUNCTION REQUIRES STATE SSSL
    127
    CONFLICT RESOLUTION FLAG IS INVALID
    128
    STRUCTURE CONFLICT OCCURS WHEN RESOLUTION FLAG IS ABANDON
    222
    SPECIFIED STRUCTURE STORE DOES NOT EXIST
    594
    DATA EXCEEDS CONNECTION BUFFER SIZE
    614
    UNKNOWN ELEMENT FOUND IN STRUCTURE n1

    Related Subroutines

    GPTST
    Transfer Structures

    RCP code

    201348611 (X'0C005603')


    [ Previous | Next | Contents | Glossary | Home | Search ]