Qore DataProvider Module Reference  2.1.2
DefaultRecordIterator.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3 
25 namespace DataProvider {
28 
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 };
*hash< string, AbstractDataField > getRecordType()
Returns the record description, if available.
Default record iterator class for data providers that do not support custom read / search APIs...
Definition: DefaultRecordIterator.qc.dox.h:30
bool valid()
returns True if the iterator is currently pointing at a valid element, False if not ...
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.
Defines the abstract class for data provider iterators; the destructor releases the iterator...
Definition: AbstractDataProviderRecordIterator.qc.dox.h:276
bool next()
Moves the current position to the next element; returns False if there are no more elements...
auto memberGate(string key)
Returns the value of the given field in the current record, if the iterator is valid.
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27
hash< auto > getValue()
returns a single record if the iterator is valid