Site Menu Project Specification Implementation Recommendations Reference Needs Updating Work in Progress Wastebasket Wiki Manual |
IO Module BITSETSpec.IOModuleBITSET HistoryHide minor edits - Show changes to output 2010-05-24 12:43
by -
Changed lines 3-4 from:
(* to:
(* I/O Module for Type BITSET *) Changed line 8 from:
bitsetValue : simpleFormat | bitGroupFormat ; to:
bitsetValue : simpleFormat | compactFormat | bitGroupFormat ; Changed lines 10-12 from:
to:
compactFormat : base16Digit+ ; bitGroupFormat : "{" bit+ ( groupSeparator? bit+ )* "}" ; groupSeparator : " " | "." ; bit : "0" | "1" ; base16Digit : "0" .. "9" | "A" .. "F" ; Changed lines 17-18 from:
PROCEDURE Read (* Reads the textual representation of a BITSET value to:
PROCEDURE Read ( infile : File; VAR set : BITSET ); (* Reads the textual representation of a BITSET value from stream infile Changed lines 20-29 from:
- any remaining characters that are part of the PROCEDURE Write( outfile : File; set : BITSET ); (* Writes the textual representation PROCEDURE WriteF( outfile : File; fmtStr : ARRAY OF CHAR (* Writes a formatted textual representation of one or more BITSET values to output stream outfile. The value to:
- any remaining characters that are part of the value being read are removed from infile - the textual representation of the value read is assigned to set - the file status is set to any of: success, outOfRange, wrongFormat, endOfLine, or endOfInput. This procedure is substituted for invocations of READ with a BITSET argument. *) PROCEDURE Write ( outfile : File; CONST set : BITSET ); (* Writes the value of BITSET set in simple format to stream outfile. This procedure is substituted for invocations of WRITE with a CHARSET argument.*) PROCEDURE WriteF ( outfile : File; CONST fmtStr : ARRAY OF CHAR; items : VARIADIC OF CONST BITSET ); (* Writes a formatted textual representation of one or more BITSET values to output stream outfile. The output format is determined by fmtStr. This procedure is substituted for invocations of WRITEF with one or more BITSET arguments. *) |