| Qore Programming Language Reference Manual 2.2.0

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