NSCL DDAS 12.2-009
Support for XIA DDAS at FRIB
Inventory.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
22#ifndef INVENTORY_H
23#define INVENTORY_H
24
25#include "CTclCommand.h"
26
27namespace DAQ {
28namespace DDAS {
29class Configuration;
30}
31} // namespace DAQ
32
42class CInventory : public CTclCommand {
43private:
45
46public:
47 CInventory(Tcl_Interp *pInterp, DAQ::DDAS::Configuration &config);
48 virtual ~CInventory();
49
50 virtual int operator()(std::vector<Tcl_Obj *> &argv);
51
52private:
53 Tcl_Obj *describeModule(int slot, int rev, int ser, int bits, int mhz);
54 void freeObjects(Tcl_Obj *list, std::vector<Tcl_Obj *> &elements);
55};
56
57#endif
Base class for Tcl commands.
Definition: Inventory.h:42
virtual ~CInventory()
Definition: Inventory.cpp:43
CInventory(Tcl_Interp *pInterp, DAQ::DDAS::Configuration &config)
Definition: Inventory.cpp:37
virtual int operator()(std::vector< Tcl_Obj * > &argv)
Definition: Inventory.cpp:58
Definition: CTclCommand.h:35
Store the system configuration information needed by Readout.
Definition: Configuration.h:88