Qore Programming Language Reference Manual  1.0.8
QC_AbstractLineIterator.dox.h
1 namespace Qore {
4 
9 
10 public:
12 
23 abstract string getLine();
24 
25 public:
27 
62 list<string> getSplitLine(string sep, string quote, string eol = "\n", bool trim_unquoted = False);
63 
64 public:
66 
80 abstract string getValue();
81 
82 public:
84 
93 abstract int index();
94 
95 public:
97 
109 abstract bool next();
110 
111 public:
113 
121 abstract bool valid();
122 };
123 }
abstract string getValue()
Returns the current line in the data or throws an INVALID-ITERATOR exception if the iterator is inval...
abstract string getLine()
Returns the current line in the data or throws an INVALID-ITERATOR exception if the iterator is inval...
abstract bool valid()
Returns True if the iterator is currently pointing at a valid element, False if not.
const False
logical False
Definition: qc_qore.dox.h:96
This class defines an abstract interface for line iterators.
Definition: QC_AbstractLineIterator.dox.h:8
list< string > getSplitLine(string sep, string quote, string eol="\, bool trim_unquoted=False)
Returns the current line and splits the string into a list of components based on a separator string ...
abstract bool next()
Moves the current position to the next line; returns False if there are no more lines to read...
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
abstract int index()
Returns the current iterator line number (the first line is line 1) or 0 if not pointing at a valid e...
This class defines an abstract interface for iterators.
Definition: QC_AbstractIterator.dox.h:10