344 hash m_resolve_by_rule;
349 AbstractLineIterator lineIterator;
562 hash<Qore::StatInfo>
hstat();
655 int m_linescount = 0;
auto transform(auto value, hash type)
parses the input value based on global configuration and the current field definition ...
Structured line iterator for abstract data allowing efficient "pipelined" processing.
Definition: FixedLengthUtil.qm.dox.h:339
const EOL_UNIX
Unix end of line character sequence (for new OS X too)
Definition: FixedLengthUtil.qm.dox.h:324
const EOL_WIN
MS DOS/Windows end of line character sequence.
Definition: FixedLengthUtil.qm.dox.h:326
string write(list lines)
iterates the input records and returns a string corresponding to the rendered versions of all input r...
constructor(string data, hash spec, *hash opts)
Instantiates the FixedLengthDataIterator object.
StreamWriter output
the output stream for the fixed-length data
Definition: FixedLengthUtil.qm.dox.h:745
list stat()
Returns a stat list of the underlying file.
string file
file name
Definition: FixedLengthUtil.qm.dox.h:874
Writer class for fixed-length line string data.
Definition: FixedLengthUtil.qm.dox.h:993
constructor(string path, hash spec, *hash opts)
Instantiates the FixedLengthFileIterator object.
Structured line iterator for fixed-length line strings allowing efficient "pipelined" processing...
Definition: FixedLengthUtil.qm.dox.h:606
*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...
write(hash line)
Renders a single line for a single input record hash to the output stream.
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:535
bool checkTransition(*string from, *string to)
A verification function to be called for each line. This method can be overridden to achieve a begin-...
constructor(Qore::AbstractLineIterator li, hash spec, *hash opts)
Creates the FixedLengthIterator in single-type mode with general line iterator to read and an option ...
*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:328
string getFileName()
Returns the file path/name used to open the file.
bool next()
Moves the current line / record position to the next line / record; returns False if there are no mor...
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:347
constructor(hash specs, *hash opts)
creates the FixedLengthAbstractWriter object
The FixedLengthIterator class allows CSV sources to be iterated on a record basis. The source of the input data is an AbstractLineIterator object or an InputStream.
Definition: FixedLengthUtil.qm.dox.h:441
constructor(Qore::OutputStream output, hash specs, *hash opts)
Instantiates the FixedLengthWriter object.
constructor(string file_name, hash specs, *hash opts)
Instantiates the FixedLengthFileWriter object.
string getEncoding()
Returns the character encoding for the file.
The FixedLengthUtil namespace contains all the definitions in the FixedLengthUtil module...
Definition: FixedLengthUtil.qm.dox.h:322
Structured abstract writer for fixed-length lines.
Definition: FixedLengthUtil.qm.dox.h:649
constructor(hash specs, *hash opts)
Instantiates the FixedLengthDataWriter object.
string formatLine(hash line)
Formats a single line from a hash describing the record type and its contents.
write(hash line)
Renders a single line for a single input record hash to the output file.
Writer for fixed-length line output data.
Definition: FixedLengthUtil.qm.dox.h:740
hash< Qore::StatInfo > hstat()
Returns a StatInfo hash of the underlying file.
constructor(AbstractLineIterator li, hash spec, *hash opts)
Instantiates the FixedLengthAbstractIterator object.
string getFileName()
Return the file name (including path, if used)
Writer for fixed-length line output files.
Definition: FixedLengthUtil.qm.dox.h:869
string m_file_path
the path of the file being iterated
Definition: FixedLengthUtil.qm.dox.h:540
*hash checkOptions(*hash opts)
Validate and prepare global fixed-length options.