Qore DataProvider Module Reference  1.0.3
DefaultRecordIterator.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3 
25 // assume local scope for variables, do not use "$" signs
26 // require type definitions everywhere
28 // enable all warnings
29 
31 namespace DataProvider {
34 
35 public:
36 protected:
37  AbstractIterator i;
38  *hash<auto> where_cond;
39  *hash<auto> search_options;
40  *hash<string, AbstractDataField> record_type;
41 
42 public:
43 
45 
49  constructor(AbstractIterator i, *hash<auto> where_cond, *hash<auto> search_options, *hash<string, AbstractDataField> record_type);
50 
51 
53 
60  bool next();
61 
62 
64 
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::DefaultRecordIterator::getRecordType
*hash< string, AbstractDataField > getRecordType()
Returns the record description, if available.
DataProvider::DefaultRecordIterator::next
bool next()
Moves the current position to the next element; returns False if there are no more elements.
DataProvider
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:32
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
Default record iterator class for data providers that do not support custom read / search APIs.
Definition: DefaultRecordIterator.qc.dox.h:33
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::getValue
hash< auto > getValue()
returns a single record if the iterator is valid