DefaultRecordIterator.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace DataProvider {
class DefaultRecordIterator : public AbstractDataProviderRecordIterator {
public:
protected:
AbstractIterator i;
*hash<auto> where_cond;
*hash<auto> search_options;
*hash<string, AbstractDataField> record_type;
int count = 0;
*string subrecord;
public:
constructor(AbstractIterator i, *hash<auto> where_cond, *hash<auto> search_options, *hash<string, AbstractDataField> record_type, *string subrecord);
bool next();
bool valid();
hash<auto> getValue();
auto memberGate(string key);
*hash<string, AbstractDataField> getRecordType();
};
};
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::valid
bool valid()
returns True if the iterator is currently pointing at a valid element, False if not ...
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::AbstractDataProviderRecordIterator
Defines the abstract class for data provider iterators; the destructor releases the iterator...
Definition: AbstractDataProviderRecordIterator.qc.dox.h:276
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