Generic hardware access library
|
00001 #include "hal/CommandSequenceReader.hh" 00002 00003 HAL::CommandSequenceReader::CommandSequenceReader() 00004 : firstAccess( true ) { 00005 } 00006 00007 HAL::CommandSequenceReader::~CommandSequenceReader() { 00008 } 00009 00010 bool HAL::CommandSequenceReader::next( std::list< std::string >& nextCommand ) { 00011 if ( firstAccess ) { 00012 it = commandList.begin(); 00013 firstAccess = false; 00014 } 00015 if ( it != commandList.end() ) { 00016 nextCommand = *it; 00017 it++; 00018 return true; 00019 } else { 00020 return false; 00021 } 00022 }