NSCL DDAS  1.0
Support for XIA DDAS at the NSCL
 All Classes Namespaces Files Functions Variables Macros Pages
ToUtils.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 TOUTILS_H
22 #define TOUTILS_H
23 #include <vector>
24 #include <map>
25 #include <utility>
26 
27 #include <ModuleSettings.h>
28 #include <XMLCrateReader.h>
29 
30 std::pair<unsigned short, unsigned short> parseMspsOption(
31  const char* opt
32 );
33 
34 std::vector<unsigned short> makeSlotVector(
35  const std::map<unsigned short, DDAS::XMLCrateReader::SlotInformation>& slotInfo
36 );
37 std::vector<unsigned short> makeSlotVector(const DDAS::Crate& crate);
38 
39 #endif
: Define an XML Crate reader
std::vector< unsigned short > makeSlotVector(const std::map< unsigned short, DDAS::XMLCrateReader::SlotInformation > &slotInfo)
Definition: ToUtils.cpp:63
std::pair< unsigned short, unsigned short > parseMspsOption(const char *opt)
Definition: ToUtils.cpp:35
: Capture the settings for a module in a nice struct of a package.
Definition: ModuleSettings.h:106