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

#include <SlotConfigReader.h>

Public Member Functions

 SlotConfigReader (const char *file)
 
 SlotConfigReader (const SlotConfigReader &rhs)
 
SlotConfigReaderoperator= (const SlotConfigReader &rhs)
 
std::vector< unsigned > read ()
 

Detailed Description

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.

Constructor & Destructor Documentation

DDAS::SlotConfigReader::SlotConfigReader ( const char *  file)

constructor Just save the filename.

Parameters
file- name of the file to process.
DDAS::SlotConfigReader::SlotConfigReader ( const SlotConfigReader rhs)

copy constructor

Member Function Documentation

SlotConfigReader & DDAS::SlotConfigReader::operator= ( const SlotConfigReader rhs)

assignment

std::vector< unsigned > DDAS::SlotConfigReader::read ( )

read Process the configuration file document.

Returns
std::vector<unsigned> - vector of slots in the order specified by the XML file.
Note
see SlotConfigReader.h for the format of the file.
the order of the slots specified implies an assignment of module ID to slots.

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