Generic hardware access library
HAL::PersistentCommandSequencer Class Reference

Adds persistency to the CommandSequencer. More...

#include <PersistentCommandSequencer.hh>

Inheritance diagram for HAL::PersistentCommandSequencer:
HAL::CommandSequencer

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 * > 
readerMap

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:
Author:
Christoph Schwick
Revision:
1.1
Date:
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.

Parameters:
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 PersistentCommandSequencer.cc.


Member Function Documentation

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

Reimplemented from HAL::CommandSequencer.

Definition at line 84 of file PersistentCommandSequencer.cc.

Reimplemented from HAL::CommandSequencer.

Definition at line 92 of file PersistentCommandSequencer.cc.

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

Definition at line 69 of file PersistentCommandSequencer.cc.


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: