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::SetFileCrateWriter Class Reference
Inheritance diagram for DDAS::SetFileCrateWriter:
DDAS::CrateWriter

Public Member Functions

 SetFileCrateWriter (const char *setFileName, const Crate &settings, const std::vector< std::pair< uint16_t, uint16_t >> &slotspeeds)
 
virtual ~SetFileCrateWriter ()
 
virtual void startCrate (int id, const std::vector< unsigned short > &slots)
 
virtual void endCrate (int id, const std::vector< unsigned short > &slots)
 
virtual SettingsWritergetWriter (unsigned short slotNum)
 
- Public Member Functions inherited from DDAS::CrateWriter
 CrateWriter (const Crate &settings)
 
virtual void write ()
 

Additional Inherited Members

- Protected Attributes inherited from DDAS::CrateWriter
Crate m_settings
 

Constructor & Destructor Documentation

DDAS::SetFileCrateWriter::SetFileCrateWriter ( const char *  setFileName,
const Crate settings,
const std::vector< std::pair< uint16_t, uint16_t >> &  slotspeeds 
)

constructor Construct the base class, Save the filename Create the editor If necessary copy the filename from the setfile template file.

Parameters
setFileName- Path to the output setfile.
settings- The settings to write.
slotspeeds- Vector of slot/speed pairs.
DDAS::SetFileCrateWriter::~SetFileCrateWriter ( )
virtual

destructor.

Member Function Documentation

void DDAS::SetFileCrateWriter::endCrate ( int  id,
const std::vector< unsigned short > &  slots 
)
virtual

endCrate After the settings have been written, each slot's crate id is also set:

Parameters
id- crate id.
slots- slot vector.

Implements DDAS::CrateWriter.

SettingsWriter * DDAS::SetFileCrateWriter::getWriter ( unsigned short  slotNum)
virtual

getWriter Returns the settings writer to be used by the base class to write a slot worth of settings.

Parameters
slotnum- the number of the slot being written.

Implements DDAS::CrateWriter.

void DDAS::SetFileCrateWriter::startCrate ( int  id,
const std::vector< unsigned short > &  slots 
)
virtual

startCrate Flip through the slots and set their speeds in the editor.

Parameters
id- crate id.
slots- vector of slots. slots that have not been explicitly assigned a speed are assigned 250.

Implements DDAS::CrateWriter.


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