318 hash m_resolve_by_rule;
336 abstract *
string getLine();
561 int m_linescount = 0;
574 private *
hash checkOptions(*
hash opts);
Structured line iterator for abstract data allowing efficient "pipelined" processing.
Definition: FixedLengthUtil.qm.dox.h:313
const EOL_UNIX
Unix end of line character sequence (for new OS X too)
Definition: FixedLengthUtil.qm.dox.h:298
const EOL_WIN
MS DOS/Windows end of line character sequence.
Definition: FixedLengthUtil.qm.dox.h:300
bool next()
Moves the current line / record position to the next line / record; returns False if there are no mor...
string write(list lines)
iterates the input records and returns a string corresponding to the rendered versions of all input r...
any transform(any value, hash type)
parses the input value based on global configuration and the current field definition ...
constructor(string file_name, hash spec, *hash opts)
Instantiates the FixedLengthFileIterator object.
Writer class for fixed-length-line data.
Definition: FixedLengthUtil.qm.dox.h:766
Structured line iterator for fixed-length line strings allowing efficient "pipelined" processing...
Definition: FixedLengthUtil.qm.dox.h:492
*hash getValue()
Returns the current record as a hash.
string identifyType(string input_line)
Identify a fixed-length line type using identifyTypeImpl(), that may be overridden if necessary...
bool checkTransition(*string from, *string to)
A verification function to be called for each line. This method can be overridden to achieve a begin-...
Structured line iterator for fixed-length line files allowing efficient "pipelined" processing...
Definition: FixedLengthUtil.qm.dox.h:432
bool checkTransition(*string from, *string to)
A verification function to be called for each line. This method can be overridden to achieve a begin-...
*string identifyTypeImpl(string input_line)
Identify a fixed-length line type, given the raw line string. This method performs a lookup to a prec...
int linesCount()
get processed lines count
const EOL_MACINTOSH
Old (pre-OSX) Macintosh end of line character sequence.
Definition: FixedLengthUtil.qm.dox.h:302
constructor(hash spec, *hash opts)
Instantiates the FixedLengthAbstractIterator object.
hash m_resolve_by_length
hash of type without rule, i.e.potentially conflicting records; key = record length, value = list of no-rule type names
Definition: FixedLengthUtil.qm.dox.h:321
constructor(hash specs, *hash opts)
creates the FixedLengthAbstractWriter object
private *hash checkOptions(*hash opts)
Validate and prepare global fixed-length options.
constructor(string file_name, hash specs, *hash opts)
Instantiates the FixedLengthFileWriter object.
The FixedLengthUtil namespace contains all the definitions in the FixedLengthUtil module...
Definition: FixedLengthUtil.qm.dox.h:296
private string getLine()
returns a line
Structured abstract writer for fixed-length lines.
Definition: FixedLengthUtil.qm.dox.h:555
constructor(hash specs, *hash opts)
Instantiates the FixedLengthDataWriter object.
constructor(string input_data, hash spec, *hash opts)
Instantiates the FixedLengthFileIterator object.
string formatLine(hash line)
Formats a single line from a hash describing the record type and its contents.
bool next()
Moves the current line / record position to the next line / record; returns False if there are no mor...
write(hash line)
Renders a single line for a single input record hash to the output file.
string getFileName()
Return the file name.
Writer for fixed-length-line output files.
Definition: FixedLengthUtil.qm.dox.h:644