| Qore DataProvider Module Reference 1.2.1

DefaultRecordIterator.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3
25 namespace DataProvider {
28
30 class DefaultRecordIterator : public AbstractDataProviderRecordIterator {
31
32 public:
33 protected:
34 AbstractIterator i;
35 *hash<auto> where_cond;
36 *hash<auto> search_options;
37 *hash<string, AbstractDataField> record_type;
38 int count = 0;
39
40 public:
41
43
47 constructor(AbstractIterator i, *hash<auto> where_cond, *hash<auto> search_options, *hash<string, AbstractDataField> record_type);
48
49
51
58 bool next();
59
60
62
64 bool valid();
65
66
68
70 hash<auto> getValue();
71
72
74
80 auto memberGate(string key);
81
82
84
86 *hash<string, AbstractDataField> getRecordType();
87
88 };
89 };
DataProvider::DefaultRecordIterator::getRecordType
*hash< string, AbstractDataField > getRecordType()
Returns the record description, if available.
DataProvider::DefaultRecordIterator
Default record iterator class for data providers that do not support custom read / search APIs...
Definition: DefaultRecordIterator.qc.dox.h:30
DataProvider::DefaultRecordIterator::constructor
constructor(AbstractIterator i, *hash< auto > where_cond, *hash< auto > search_options, *hash< string, AbstractDataField > record_type)
Returns an iterator for zero or more records matching the search options.
DataProvider::DefaultRecordIterator::valid
bool valid()
returns True if the iterator is currently pointing at a valid element, False if not ...
DataProvider::AbstractDataProviderRecordIterator
Defines the abstract class for data provider iterators; the destructor releases the iterator...
Definition: AbstractDataProviderRecordIterator.qc.dox.h:33
DataProvider::DefaultRecordIterator::next
bool next()
Moves the current position to the next element; returns False if there are no more elements...
DataProvider::DefaultRecordIterator::memberGate
auto memberGate(string key)
Returns the value of the given field in the current record, if the iterator is valid.
DataProvider
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27
DataProvider::DefaultRecordIterator::getValue
hash< auto > getValue()
returns a single record if the iterator is valid