Generic hardware access library
HAL::PersistentCommandSequencer Class Reference

Adds persistency to the CommandSequencer. More...

#include <PersistentCommandSequencer.hh>

Inheritance diagram for HAL::PersistentCommandSequencer:

List of all members.

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 AddressTableInterfaceaddressTable
std::map< std::string,
CommandSequenceReader * > 

Detailed Description

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.

See also:
Christoph Schwick
2007/03/05 17:44:00

Definition at line 34 of file PersistentCommandSequencer.hh.

Constructor & Destructor Documentation

HAL::PersistentCommandSequencer::PersistentCommandSequencer ( std::string  configurationFile,
const AddressTableInterface addressTable 
) throw ( IllegalOperationException )

Constructor of the class.

configurationFileis 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

Member Function Documentation

void HAL::PersistentCommandSequencer::deleteSequence ( std::string  sequenceName) throw ( IllegalValueException ) [virtual]

Reimplemented from HAL::CommandSequencer.

Definition at line 84 of file

Reimplemented from HAL::CommandSequencer.

Definition at line 92 of file

void HAL::PersistentCommandSequencer::registerSequence ( std::string  sequenceName)

Definition at line 69 of file

Member Data Documentation

Definition at line 63 of file PersistentCommandSequencer.hh.

Definition at line 65 of file PersistentCommandSequencer.hh.

The documentation for this class was generated from the following files: