IORESULT.DEF 772 B

123456789101112131415161718192021222324252627
  1. DEFINITION MODULE IOResult;
  2. (* Obtain read results on specified channels *)
  3. IMPORT IOConsts;
  4. FROM IOLink IMPORT ChanId;
  5. TYPE
  6. ReadResults = IOConsts.ReadResults;
  7. (* ReadResults = (* This type is used to classify the result of an input
  8. operation *)
  9. (
  10. notKnown, (* no read result is set *)
  11. allRight, (* data is as expected or as required *)
  12. outOfRange, (* data cannot be represented *)
  13. wrongFormat, (* data not in expected form *)
  14. endOfLine, (* end of line seen before expected data *)
  15. endOfInput, (* end of input seen before expected data *)
  16. );
  17. *)
  18. PROCEDURE ReadResult (cid : ChanId) : ReadResults;
  19. (* Returns the result for the last read operation on the channel *)
  20. END IOResult.