Generic hardware access library
|
Adds persistency to the CommandSequencer. More...
#include <PersistentCommandSequencer.hh>
Public Member Functions | |
PersistentCommandSequencer (std::string configurationFile, const AddressTableInterface &addressTable) throw ( IllegalOperationException ) | |
Constructor of the class. | |
~PersistentCommandSequencer () | |
void | registerSequence (std::string sequenceName) |
void | deleteSequence (std::string sequenceName) throw ( IllegalValueException ) |
void | deleteSequences () |
Private Member Functions | |
void | loadSequences () |
void | saveSequences () |
Private Attributes | |
std::string | configurationFile |
const AddressTableInterface & | addressTable |
std::map< std::string, CommandSequenceReader * > | readerMap |
Adds persistency to the CommandSequencer.
This class is a CommandSequencer which saves its internal status in a file. When the program is restarted the status is reloaded from the file so that previously registered sequences are immediately available, also after a restart of the program. This class is convenient for small test programs.
Definition at line 34 of file PersistentCommandSequencer.hh.
HAL::PersistentCommandSequencer::PersistentCommandSequencer | ( | std::string | configurationFile, |
const AddressTableInterface & | addressTable | ||
) | throw ( IllegalOperationException ) |
Constructor of the class.
configurationFile | is the fileName of the file where the status of the CommandSequencer is saved. Each line in the file contains the name of a sequence file. Also the last entry must be followed by a carriage return. |
Definition at line 5 of file PersistentCommandSequencer.cc.
Definition at line 13 of file PersistentCommandSequencer.cc.
void HAL::PersistentCommandSequencer::deleteSequence | ( | std::string | sequenceName | ) | throw ( IllegalValueException ) [virtual] |
Reimplemented from HAL::CommandSequencer.
Definition at line 84 of file PersistentCommandSequencer.cc.
void HAL::PersistentCommandSequencer::deleteSequences | ( | ) | [virtual] |
Reimplemented from HAL::CommandSequencer.
Definition at line 92 of file PersistentCommandSequencer.cc.
void HAL::PersistentCommandSequencer::loadSequences | ( | ) | [private] |
Definition at line 17 of file PersistentCommandSequencer.cc.
void HAL::PersistentCommandSequencer::registerSequence | ( | std::string | sequenceName | ) |
Definition at line 69 of file PersistentCommandSequencer.cc.
void HAL::PersistentCommandSequencer::saveSequences | ( | ) | [private] |
Definition at line 52 of file PersistentCommandSequencer.cc.
const AddressTableInterface& HAL::PersistentCommandSequencer::addressTable [private] |
Definition at line 64 of file PersistentCommandSequencer.hh.
std::string HAL::PersistentCommandSequencer::configurationFile [private] |
Definition at line 63 of file PersistentCommandSequencer.hh.
std::map< std::string, CommandSequenceReader* > HAL::PersistentCommandSequencer::readerMap [private] |
Definition at line 65 of file PersistentCommandSequencer.hh.