Synopsis

PDX_MSGT gdx_CBSImproveParmCECCont(long option, MDA_PTR *gdx_cbs_ptr, PDX_BOOL *closed)

Purpose

Improve CEC continuity by senses and order in parm space for a CBS

Description

This function tries to close all CEC's by using senses and order in parm space for a CBS. If all CEC's were able to be closed, the flag closed would be set as TRUE; otherwise, the flag closed would be set as FALSE. The CBS may or may not be replaced based on the option chosen. See the desciption about options for more details. Once a CBS is replaced, each CEC of it will be continuous between two consecutive gaps (if any) in parm space and all backpointer information will be set up accordingly.

This function does not guarantee the CEC's are in right direction even if they are closed.

Input

option

GDX_REPLACE_CLOSED_CBS

Replace the CBS only when it is closed and keep the unclosed CBS unchanged. The default is to replace it no matter what it is.

GDX_NO_REPLACE

Don't replace the CBS. This option is used when you only need know if the CEC in parm space is closed or not. The default is to replace it no matter what it is.

gdx_cbs_ptr

The valid GDX CBS database pointer

Output

gdx_cbs_ptr

The valid GDX CBS database pointer

closed

Flag indicating if all CEC's are closed in parm space for the CBS

Return

      GDX_NOERR
      Low level error return
      .fi