NSCL DDAS  1.0
Support for XIA DDAS at the NSCL
 All Classes Namespaces Files Functions Variables Macros Pages
SetFileCrateReader.h
Go to the documentation of this file.
1 /*
2  This software is Copyright by the Board of Trustees of Michigan
3  State University (c) Copyright 2017.
4 
5  You may use this software under the terms of the GNU public license
6  (GPL). The terms of this license are described at:
7 
8  http://www.gnu.org/licenses/gpl.txt
9 
10  Authors:
11  Ron Fox
12  Giordano Cerriza
13  NSCL
14  Michigan State University
15  East Lansing, MI 48824-1321
16 */
17 
21 #ifndef SETFILECRATEREADER_H
22 #define SETFILECRATEREADER_H
23 
24 #include "CrateReader.h"
25 #include <map>
26 #include <string>
27 namespace DDAS {
39 {
40 private:
41  std::map<unsigned short, std::string> m_varFiles;
42  std::map<unsigned short, unsigned> m_MHz;
43  std::string m_setFile;
44 public:
46  const char* setFile, unsigned crateId,
47  std::vector<unsigned short> slots,
48  std::vector<std::string> varFiles,
49  std::vector<unsigned short> MHz
50  );
51  virtual ~SetFileCrateReader() {}
52 
53  virtual SettingsReader* createReader(unsigned short slot);
54 };
55 
56 }
57 #endif
virtual SettingsReader * createReader(unsigned short slot)
Definition: SetFileCrateReader.cpp:75
: Defines a class that can read a crate.
Definition: SettingsReader.h:38
SetFileCrateReader(const char *setFile, unsigned crateId, std::vector< unsigned short > slots, std::vector< std::string > varFiles, std::vector< unsigned short > MHz)
Definition: SetFileCrateReader.cpp:36
Definition: CrateReader.h:40
Definition: SetFileCrateReader.h:38
Definition: functions.h:26