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

StDbTableIterImpl.cc

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

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