Example
The following example shows how to determine whether input is inhibited or not.
//-------------------------------------------------------------------
// ECLOIA::InputInhibited
//
// Determine status of connection 'A' OIA indicator
//-------------------------------------------------------------------
void Sample57() {
ECLOIA OIA('A'); // OIA object for connection A
switch (OIA.InputInhibited()) {
case NotInhibited:
printf("Input not inhibited.\n");
break;
case SystemWait:
printf("Input inhibited for SystemWait.\n");
break;
case CommCheck:
printf("Input inhibited for CommCheck.\n");
break;
case ProgCheck:
printf("Input inhibited for ProgCheck.\n");
break;
case MachCheck:
printf("Input inhibited for MachCheck.\n");
break;
case OtherInhibit:
printf("Input inhibited for OtherInhibit.\n");
break;
default:
printf("Input inhibited for unknown reason.\n");
break;
}
} // end sample