Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

StDbTableIterImpl.hh

Go to the documentation of this file.
00001 /*************************************************************************** 00002 * 00003 * $Id: StDbTableIterImpl.hh,v 1.1 2001/01/22 18:38:02 porter Exp $ 00004 * 00005 * Author: R. Jeff Porter 00006 *************************************************************************** 00007 * 00008 * Description: Iterates of table-list in a given StDbConfigNode class 00009 * 00010 *************************************************************************** 00011 * $Log: StDbTableIterImpl.hh,v $ 00012 * Revision 1.1 2001/01/22 18:38:02 porter 00013 * Update of code needed in next year running. This update has little 00014 * effect on the interface (only 1 method has been changed in the interface). 00015 * Code also preserves backwards compatibility so that old versions of 00016 * StDbLib can read new table structures. 00017 * -Important features: 00018 * a. more efficient low-level table structure (see StDbSql.cc) 00019 * b. more flexible indexing for new systems (see StDbElememtIndex.cc) 00020 * c. environment variable override KEYS for each database 00021 * d. StMessage support & clock-time logging diagnostics 00022 * -Cosmetic features 00023 * e. hid stl behind interfaces (see new *Impl.* files) to again allow rootcint access 00024 * f. removed codes that have been obsolete for awhile (e.g. db factories) 00025 * & renamed some classes for clarity (e.g. tableQuery became StDataBaseI 00026 * and mysqlAccessor became StDbSql) 00027 * 00028 * 00029 **************************************************************************/ 00030 #ifndef TABLEITRIMPL_HH 00031 #define TABLEITRIMPL_HH 00032 00033 #include "StDbConfigNodeImpl.hh" 00034 typedef TableList::iterator ListIter; 00035 00036 class StDbTableIterImpl : public StDbTableIter { 00037 00038 ListIter itr; 00039 StDbConfigNodeImpl* mnode; 00040 00041 public: 00042 00043 StDbTableIterImpl() : mnode(0){}; 00044 StDbTableIterImpl(StDbConfigNodeImpl* node){ init(node);}; 00045 virtual ~StDbTableIterImpl(){}; 00046 00047 void init(StDbConfigNodeImpl* node); 00048 00049 virtual StDbTable* next(); 00050 virtual StDbTable* operator++(); 00051 virtual bool done(); 00052 00053 }; 00054 00055 #endif 00056 00057 00058 00059 00060 00061

Generated on Thu Aug 24 14:45:28 2006 for Doxygen by doxygen 1.3.7