118 class ListValueIterator :
public ListIterator {
121 constructor(*
list l);
143 const FieldAttrs = (
"type",
"format",
"timezone",
"code");
155 static checkType(
string key,
string value);
316 "ignore-empty":
True,
317 "ignore-whitespace":
True,
318 "header-lines":
True,
319 "header-names":
True,
321 "verify-columns":
True,
330 string separator =
",";
336 softint headerLines = 0;
339 bool headerNames =
False;
342 bool ignoreEmptyLines =
True;
345 bool ignoreWhitespace =
True;
360 bool checkElementCounts =
False;
586 "verify-columns":
True,
599 string separator =
",";
608 string dateFormat =
'DD/MM/YYYY hh:mm:SS';
620 bool checkElementCounts =
False;
669 write(AbstractIterator iterator);
675 writeRawLine(
list values);
682 string dateFormat(
int ix);
string get_default_encoding()
writeLine(list values)
write a line with list of values. Data are checked against column rules.
write(AbstractIterator iterator)
stream iterator into the file.
list getRecordList()
returns the current record as a list
int lineNumber()
returns the current iterator line number in the file (the first line is line 1) or 0 if not pointing ...
constructor(string path, *hash opts)
creates the CsvFileIterator with the path of the file to read and optionally an option hash ...
bool next()
Moves the current line / record position to the next line / record; returns False if there are no mor...
the CsvFileIterator class allows CSV files to be iterated
Definition: CsvUtil.qm.dox.h:306
any getValue()
returns the current record as a hash
string getQuote()
returns the current quote string
const Options
valid options for the object (a hash for quick lookups of valid keys)
Definition: CsvUtil.qm.dox.h:581
any memberGate(string name)
returns the given column value for the current row
list parseLine()
parses a line in the file and returns a processed list of the fields
const EOL_MACINTOSH
Old (pre-OSX) Macintosh end of line character sequence.
Definition: CsvUtil.qm.dox.h:167
const Options
valid options for the object (a hash for quick lookups of valid keys)
Definition: CsvUtil.qm.dox.h:311
const EOL_UNIX
Unix end of line character sequence (for new OS X too)
Definition: CsvUtil.qm.dox.h:163
const EOL_WIN
MS DOS/Windows end of line character sequence.
Definition: CsvUtil.qm.dox.h:165
*list getHeaders()
returns the current column headers or NOTHING if no headers have been detected or saved yet ...
constructor(string path, *hash opts)
creates the CsvFileWriter with the path of the file to read with an options
int index()
returns the row index being iterated, which does not necessarily correspond to the line number when t...
the CsvFileWriter class for easy and safe CSV file creation
Definition: CsvUtil.qm.dox.h:576
hash getRecord()
returns the current record as a hash
string getSeparator()
returns the current separator string