NSCL DDAS  12.1-001
Support for XIA DDAS at FRIB
ConfigurationParser.h
Go to the documentation of this file.
1 
6 #ifndef CONFIGURATIONPARSER_H
7 #define CONFIGURATIONPARSER_H
8 
9 #include <iosfwd>
10 #include <regex>
11 #include <tuple>
12 
14 namespace DAQ {
16  namespace DDAS {
17 
18  class Configuration;
19  class FirmwareConfiguration;
20 
79  {
80  public:
91  typedef std::tuple<int, std::string, std::string> SlotSpecification;
92 
93  public:
104  void parse(std::istream& input, Configuration& config);
114  SlotSpecification parseSlotLine(std::istream& input);
115  };
116 
119  } // end DDAS namespace
120 } // end DAQ namespace
121 
122 #endif // CONFIGURATIONPARSER_H
A class to parse the contents of the cfgPixie16.txt file.
Definition: ConfigurationParser.h:79
void parse(std::istream &input, Configuration &config)
Parse the contents of the cfgPixie16.txt file.
Definition: ConfigurationParser.cpp:52
std::tuple< int, std::string, std::string > SlotSpecification
Data returned when parsing a slot.
Definition: ConfigurationParser.h:91
SlotSpecification parseSlotLine(std::istream &input)
Parses a slot line.
Definition: ConfigurationParser.cpp:166
Store the system configuration information needed by Readout.
Definition: Configuration.h:81