NSCL DDAS  1.0
Support for XIA DDAS at the NSCL
 All Classes Namespaces Files Functions Variables Macros Pages
Public Member Functions | Protected Attributes | List of all members
DDAS::CrateReader Class Referenceabstract

#include <CrateReader.h>

Inheritance diagram for DDAS::CrateReader:
DDAS::PixieCrateReader DDAS::SetFileCrateReader DDAS::XMLCrateReader

Public Member Functions

 CrateReader (unsigned crate, const std::vector< unsigned short > &slots)
 
virtual ~CrateReader ()
 
virtual Crate readCrate ()
 
virtual SettingsReadercreateReader (unsigned short slot)=0
 

Protected Attributes

std::vector< unsigned short > m_slots
 
unsigned m_crateId
 

Detailed Description

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.

Constructor & Destructor Documentation

DDAS::CrateReader::CrateReader ( unsigned  crate,
const std::vector< unsigned short > &  slots 
)

constructor Save the slots we're reading in.

Parameters
crate- Id of the crate we're reading.
slots- the slotst to read.
DDAS::CrateReader::~CrateReader ( )
virtual

destructor

Member Function Documentation

Crate DDAS::CrateReader::readCrate ( )
virtual

readCrate This is a strategy driver for the reader. It has helpers that must be implemented to function:

  • crateReader - must return a dynamically allocated reader for the data in a slot.
  • getEvtLen - must return the expected event length for a slot These are called in that order for each slot.
    Returns
    Crate - the processed crate description.

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