例
以下の例は、入力が使用禁止になっているかどうかを判別する方法を示します。
//-------------------------------------------------------------------
// 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