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
DAQ::DDAS::FirmwareVersionFileParser Class Reference

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

Detailed Description

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.

Member Function Documentation

void DAQ::DDAS::FirmwareVersionFileParser::parse ( std::istream &  input,
Configuration config 
)

Main entry point for parsing DDASFirmwareVersions.txt file.

Parameters
inputthe stream to read file content from
configthe configuration to store data in

Any firmware configurations that were stored in the configuration object before this will be overwritten with new content.


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