NSCL DDAS  1.0
Support for XIA DDAS at the NSCL
 All Classes Namespaces Files Functions Variables Macros Pages
ModuleWriter.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 MODULEWRITER_H
22 #include "SettingsWriter.h"
23 
24 namespace DAQ {
25  namespace DDAS {
26  class Configuration;
27  }
28 }
29 
30  namespace DDAS {
39 {
40  unsigned m_moduleId;
41  unsigned m_crateId;
42  unsigned m_slotId;
43 
44 public:
45  ModuleWriter(unsigned crate, unsigned slot, unsigned module);
46  virtual ~ModuleWriter();
47  virtual void write(const ModuleSettings& dspSettings);
48 private:
49  void loadModule(unsigned modId, const ModuleSettings& settings);
50  void loadModuleSettings(unsigned modid, const ModuleSettings& settings);
51  void loadChannelSettings(
52  unsigned modId, unsigned chan, const ModuleSettings& settings
53  );
54  void writeModuleSetting(
55  unsigned modid, const char* name, unsigned int value
56  );
57  void writeChannelSetting(
58  unsigned modid, unsigned chan, const char* name, double value
59  );
60 };
61 } // DDAS Namespace.
62  #endif
63 
64 
ModuleWriter(unsigned crate, unsigned slot, unsigned module)
Definition: ModuleWriter.cpp:45
Definition: SettingsWriter.h:41
: Abstract base class to write DSP settings to file.
virtual ~ModuleWriter()
Definition: ModuleWriter.cpp:53
Definition: ModuleSettings.h:36
Definition: ModuleWriter.h:38
virtual void write(const ModuleSettings &dspSettings)
Definition: ModuleWriter.cpp:67
Definition: functions.h:26
Definition: SystemBooter.cpp:16