Generic hardware access library
/home/cschwick/hal/generic/src/common/StaticVMEConfigurationReader.cc
Go to the documentation of this file.
00001 #include "hal/StaticVMEConfigurationReader.hh"
00002 
00003 HAL::StaticVMEConfigurationReader::StaticVMEConfigurationReader() {
00004   firstAccess_ = true;
00005 }
00006 
00007 
00011 HAL::StaticVMEConfigurationReader::~StaticVMEConfigurationReader() {
00012   if ( firstAccess_ ) it = staticVMEItemList_.begin();
00013   while ( it != staticVMEItemList_.end() ) {
00014     delete (*it);
00015     it++;
00016   }
00017   
00018 }
00019 
00020 bool HAL::StaticVMEConfigurationReader::next( HAL::StaticVMEItem** nextItem ) {
00021   if ( firstAccess_ )  {
00022     it = staticVMEItemList_.begin();
00023     firstAccess_ = false;
00024   }
00025   if ( it != staticVMEItemList_.end() ) {
00026     *nextItem = *it;
00027     it++;
00028     return true;
00029   } else {
00030     return false;
00031   }
00032 }
00033