NSCL DDAS
1.0
Support for XIA DDAS at the NSCL
|
#include <CrateReader.h>
Public Member Functions | |
CrateReader (unsigned crate, const std::vector< unsigned short > &slots) | |
virtual | ~CrateReader () |
virtual Crate | readCrate () |
virtual SettingsReader * | createReader (unsigned short slot)=0 |
Protected Attributes | |
std::vector< unsigned short > | m_slots |
unsigned | m_crateId |
This class is able to read and process a crate The first <slot> element is id 0 and so on. This is an abstract base class that is used to fetch the configuration of a crate from any of a number of types of places depending on the type of concrete subclass.
DDAS::CrateReader::CrateReader | ( | unsigned | crate, |
const std::vector< unsigned short > & | slots | ||
) |
constructor Save the slots we're reading in.
crate | - Id of the crate we're reading. |
slots | - the slotst to read. |
|
virtual |
destructor
|
virtual |
readCrate This is a strategy driver for the reader. It has helpers that must be implemented to function: