ARB
items.cxx
Go to the documentation of this file.
1 // ============================================================ //
2 // //
3 // File : items.cxx //
4 // Purpose : //
5 // //
6 // Coded by Ralf Westram (coder@reallysoft.de) in June 2016 //
7 // http://www.arb-home.de/ //
8 // //
9 // ============================================================ //
10 
11 #include "items.h"
12 #include <arbdb.h>
13 
19 
21  while (gb_container) {
22  GBDATA *gb_item = selector.get_first_item(gb_container, QUERY_ALL_ITEMS);
23  if (gb_item) return gb_item;
24 
25  gb_container = selector.get_next_item_container(gb_container, QUERY_ALL_ITEMS);
26  }
27 
28  return NULp;
29 }
30 
31 
GBDATA * get_any_item() const
Definition: items.cxx:14
ItemSelector & selector
Definition: items.h:86
GBDATA *(* get_first_item_container)(GBDATA *, AW_root *, QUERY_RANGE)
Definition: items.h:69
GBDATA *(* get_next_item_container)(GBDATA *, QUERY_RANGE)
Definition: items.h:70
GBDATA *(* get_first_item)(GBDATA *, QUERY_RANGE)
Definition: items.h:72
GBDATA * gb_main
Definition: items.h:85
#define NULp
Definition: cxxforward.h:97
GB_transaction ta(gb_var)