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 |
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: