Qore DataProvider Module Reference  1.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 
39  abstract hash<auto> getValue();
40 
42 
48 protected:
49  auto doMemberGate(string key);
50 public:
51 
52 
54 
57 protected:
58  static bool matchGeneric(hash<auto> record, *hash<auto> where_cond);
59 public:
60 
61 
63 
66 protected:
67  static bool matchGenericValue(auto expects, auto val);
68 public:
69 
70 };
71 };
static bool matchGeneric(hash< auto > record, *hash< auto > where_cond)
Checks if the current record matches the search criteria.
Defines the abstract class for data provider iterators; the destructor releases the iterator.
Definition: AbstractDataProviderRecordIterator.qc.dox.h:33
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:32
abstract hash< auto > getValue()
returns a single record if the iterator is valid
static bool matchGenericValue(auto expects, auto val)
Match a single value.