Data Formats

A data format is used in those cases where a module has selected the formatted field in some of the input and output streams. The format specifies the structure of information received from an input stream. It is used to generate the code for FramedInput devices.

Field Description
streamType the stream type of the structured information.
isArrayFrame indicates whether frames are repeated arrays of a fixed size delimited by a startFrameValue and and endFrameValue
arraySize in an array frame, the number of values between the start and end delimiters.
startFrameValue the value in the stream which indicates the start of a frame.
endFrameValue the value in the stream which indicates the end of a frame.

Generated Code

The information in the table is used mainly to generated FramedInput methods startFrameFound() and endFrameFound, which use the buffer inputBuffer.

This code is simple for the case of streams with fixed value frame delimiters. In the initial prototype, this is the only case handled, so the above fields are used as parameters to the object that decodes this type of stream.