Qore DataProvider Module Reference 2.7.5
Loading...
Searching...
No Matches
DefaultRecordIterator.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
26namespace DataProvider {
28
31
32public:
33protected:
34 AbstractIterator i;
35 *hash<auto> where_cond;
36 *hash<auto> search_options;
37 *hash<string, AbstractDataField> record_type;
38 int count = 0;
39 *string subrecord;
40
41public:
42
44
50 constructor(AbstractIterator i, *hash<auto> where_cond, *hash<auto> search_options, *hash<string, AbstractDataField> record_type, *string subrecord);
51
52
54
61 bool next();
62
63
65
67 bool valid();
68
69
71
73 hash<auto> getValue();
74
75
77
83 auto memberGate(string key);
84
85
87
89 *hash<string, AbstractDataField> getRecordType();
90
91};
92};
Defines the abstract class for data provider iterators; the destructor releases the iterator.
Definition: AbstractDataProviderRecordIterator.qc.dox.h:339
Default record iterator class for data providers that do not support custom read / search APIs.
Definition: DefaultRecordIterator.qc.dox.h:30
hash< auto > getValue()
returns a single record if the iterator is valid
*hash< string, AbstractDataField > getRecordType()
Returns the record description, if available.
bool valid()
returns True if the iterator is currently pointing at a valid element, False if not
auto memberGate(string key)
Returns the value of the given field in the current record, if the iterator is valid.
bool next()
Moves the current position to the next element; returns False if there are no more elements.
constructor(AbstractIterator i, *hash< auto > where_cond, *hash< auto > search_options, *hash< string, AbstractDataField > record_type, *string subrecord)
Returns an iterator for zero or more records matching the search options.
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27