NSCL DDAS
1.0
Support for XIA DDAS at the NSCL
|
The FirmwareVersionFileParser class. More...
#include <FirmwareVersionFileParser.h>
Public Member Functions | |
void | parse (std::istream &input, Configuration &config) |
Main entry point for parsing DDASFirmwareVersions.txt file. More... | |
The FirmwareVersionFileParser class.
The FirmwareVersionFileParser is designed to parse the DDASFirmwareVersions.txt file that is installed by the project. The DDASFirmwareVersions.txt file has two major sections. The top section contains fpga firmware file paths and the bottom section provides the paths to dsp configuration code. The format of this file can be observed in DDASFirmwareVersions.txt.in , which is the template file used by automake to generate the DDASFirmwareVersion.txt file.
Ultimately, the contents of the DDASFirmwareVersions.txt file will be stored in the Configuration object passed in as an argument to the parse() method. That object will keep a database of the firmware files organized by their associated hardware type.
void DAQ::DDAS::FirmwareVersionFileParser::parse | ( | std::istream & | input, |
Configuration & | config | ||
) |
Main entry point for parsing DDASFirmwareVersions.txt file.
input | the stream to read file content from |
config | the configuration to store data in |
Any firmware configurations that were stored in the configuration object before this will be overwritten with new content.