StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StDbTableIterImpl.hh
1 /***************************************************************************
2  *
3  * $Id: StDbTableIterImpl.hh,v 1.1 2001/01/22 18:38:02 porter Exp $
4  *
5  * Author: R. Jeff Porter
6  ***************************************************************************
7  *
8  * Description: Iterates of table-list in a given StDbConfigNode class
9  *
10  ***************************************************************************
11  * $Log: StDbTableIterImpl.hh,v $
12  * Revision 1.1 2001/01/22 18:38:02 porter
13  * Update of code needed in next year running. This update has little
14  * effect on the interface (only 1 method has been changed in the interface).
15  * Code also preserves backwards compatibility so that old versions of
16  * StDbLib can read new table structures.
17  * -Important features:
18  * a. more efficient low-level table structure (see StDbSql.cc)
19  * b. more flexible indexing for new systems (see StDbElememtIndex.cc)
20  * c. environment variable override KEYS for each database
21  * d. StMessage support & clock-time logging diagnostics
22  * -Cosmetic features
23  * e. hid stl behind interfaces (see new *Impl.* files) to again allow rootcint access
24  * f. removed codes that have been obsolete for awhile (e.g. db factories)
25  * & renamed some classes for clarity (e.g. tableQuery became StDataBaseI
26  * and mysqlAccessor became StDbSql)
27  *
28  *
29  **************************************************************************/
30 #ifndef TABLEITRIMPL_HH
31 #define TABLEITRIMPL_HH
32 
33 #include "StDbConfigNodeImpl.hh"
34 typedef TableList::iterator ListIter;
35 
37 
38  ListIter itr;
39  StDbConfigNodeImpl* mnode;
40 
41 public:
42 
43  StDbTableIterImpl() : mnode(0){};
44  StDbTableIterImpl(StDbConfigNodeImpl* node){ init(node);};
45  virtual ~StDbTableIterImpl(){};
46 
47  void init(StDbConfigNodeImpl* node);
48 
49  virtual StDbTable* next();
50  virtual StDbTable* operator++();
51  virtual bool done();
52 
53 };
54 
55 #endif
56 
57 
58 
59 
60 
61