Qore DataProvider Module Reference  2.0
AbstractDataProviderRecordIterator.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 {
33 class AbstractDataProviderRecordIterator : public AbstractIterator {
34 
35 public:
37 
42 
43 
45 
50 
51 
53 
55  *hash<string, AbstractDataField> getRecordType();
56 
57 
59 
61  abstract hash<auto> getValue();
62 
64 
70 protected:
71  auto doMemberGate(string key);
72 public:
73 
74 
76 
79 protected:
80  static bool matchGeneric(hash<auto> record, *hash<auto> where_cond);
81 public:
82 
83 
85 
88 protected:
89  static bool matchGenericValue(auto expects, auto val);
90 public:
91 
92 };
93 };
Defines the abstract class for data provider iterators; the destructor releases the iterator.
Definition: AbstractDataProviderBulkRecordInterface.qc.dox.h:33
Defines the abstract class for data provider iterators; the destructor releases the iterator.
Definition: AbstractDataProviderRecordIterator.qc.dox.h:33
static bool matchGeneric(hash< auto > record, *hash< auto > where_cond)
Checks if the current record matches the search criteria.
*hash< string, AbstractDataField > getRecordType()
Returns the record description, if available.
static bool matchGenericValue(auto expects, auto val)
Match a single value.
*AbstractDataProviderBulkRecordInterface getBulkApi()
Returns the bulk data interface if supported.
bool supportsBulkApi()
Returns True if the iterator supports bulk operation.
abstract hash< auto > getValue()
returns a single record if the iterator is valid
auto doMemberGate(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