NSCL DDAS
1.0
Support for XIA DDAS at the NSCL
|
#include <SlotConfigReader.h>
Public Member Functions | |
SlotConfigReader (const char *file) | |
SlotConfigReader (const SlotConfigReader &rhs) | |
SlotConfigReader & | operator= (const SlotConfigReader &rhs) |
std::vector< unsigned > | read () |
Reads a slot configuration for a Crate. These look like e.g.:
* <DDASCrate> * <slot number="2" /> * slot number="5" /> * slot number="6" /> * </DDASCrate> *
The sample file below specifies there are modules in slots 2,5, and 6.
DDAS::SlotConfigReader::SlotConfigReader | ( | const char * | file | ) |
constructor Just save the filename.
file | - name of the file to process. |
DDAS::SlotConfigReader::SlotConfigReader | ( | const SlotConfigReader & | rhs | ) |
copy constructor
SlotConfigReader & DDAS::SlotConfigReader::operator= | ( | const SlotConfigReader & | rhs | ) |
assignment
std::vector< unsigned > DDAS::SlotConfigReader::read | ( | ) |
read Process the configuration file document.