| Qore DataProvider Module Reference 3.2.2

Loading...
Searching...
No Matches
DefaultRecordIterator.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
24
26 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 *string subrecord;
40
41 public:
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};
DataProvider::AbstractDataProviderRecordIterator
Defines the abstract class for data provider iterators; the destructor releases the iterator.
Definition AbstractDataProviderRecordIterator.qc.dox.h:288
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::getValue
hash< auto > getValue()
returns a single record if the iterator is valid
DataProvider::DefaultRecordIterator::getRecordType
*hash< string, AbstractDataField > getRecordType()
Returns the record description, if available.
DataProvider::DefaultRecordIterator::valid
bool valid()
returns True if the iterator is currently pointing at a valid element, False if not
DataProvider::DefaultRecordIterator::memberGate
auto memberGate(string key)
Returns the value of the given field in the current record, if the iterator is valid.
DataProvider::DefaultRecordIterator::next
bool next()
Moves the current position to the next element; returns False if there are no more elements.
DataProvider::DefaultRecordIterator::constructor
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.
DataProvider
Qore AbstractDataField class definition.
Definition AbstractDataField.qc.dox.h:27