Qore FixedLengthUtil Module Reference
1.1
|
Writer class for fixed-length line string data. More...
Public Member Methods | |
constructor (hash specs, *hash opts) | |
Instantiates the FixedLengthDataWriter object. More... | |
string | write (list lines) |
iterates the input records and returns a string corresponding to the rendered versions of all input records More... | |
string | write (hash line) |
Return a single line for a single input record hash. More... | |
string | write (Qore::AbstractIterator lines) |
iterates the input records and returns a string corresponding to the rendered versions of all input records More... | |
Public Member Methods inherited from FixedLengthUtil::FixedLengthAbstractWriter | |
bool | checkTransition (*string from, *string to) |
A verification function to be called for each line. This method can be overridden to achieve a begin-to-end validation of the whole input file. More... | |
constructor (hash specs, *hash opts) | |
creates the FixedLengthAbstractWriter object More... | |
string | formatLine (hash line) |
Formats a single line from a hash describing the record type and its contents. More... | |
int | linesCount () |
get processed lines count | |
Writer class for fixed-length line string data.
Instantiates the FixedLengthDataWriter object.
specs | Fixed-length line specification; see Specification Hash for more information |
opts | Global formatting options; see Global Options for valid values |
iterates the input records and returns a string corresponding to the rendered versions of all input records
lines | An iterator to stream input records; each iterator value must be a hash with the following keys:
|
INVALID-RECORD | record name (type key in the record hash) not recognized |
FIELD-INPUT-ERROR | the input value is too large to render into the output field |
RECORD-TRANSITION-ERROR | a record transition error occurred; an invalid record sequence was given in the input data |
Return a single line for a single input record hash.
line | A hash representing input data to be rendered as a string; the hash must have the following keys:
|
INVALID-RECORD | record name (type key in the record hash) not recognized |
FIELD-INPUT-ERROR | the input value is too large to render into the output field |
RECORD-TRANSITION-ERROR | a record transition error occurred; an invalid record sequence was given in the input data |
string FixedLengthUtil::FixedLengthDataWriter::write | ( | Qore::AbstractIterator | lines | ) |
iterates the input records and returns a string corresponding to the rendered versions of all input records
lines | An iterator to stream input records; each iterator value must be a hash with the following keys:
|
INVALID-RECORD | record name (type key in the record hash) not recognized |
FIELD-INPUT-ERROR | the input value is too large to render into the output field |
RECORD-TRANSITION-ERROR | a record transition error occurred; an invalid record sequence was given in the input data |