NSCL DDAS 12.2-009
Support for XIA DDAS at FRIB
IsActive.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 ISACTIVE_H
23#define ISACTIVE_H
24
25#include "CTclCommand.h"
26
27#include <string>
28
29// Forward definitions.
30
31namespace DAQ {
32namespace DDAS {
33class Configuration;
34}
35} // namespace DAQ
36
53class CIsActive : public CTclCommand {
54private:
56
57public:
58 CIsActive(Tcl_Interp *pInterp, DAQ::DDAS::Configuration &config);
59 virtual ~CIsActive();
60
61 virtual int operator()(std::vector<Tcl_Obj *> &objv);
62
63private:
64 Tcl_Obj *getAllModuleStates();
65 bool moduleState(int index);
66 Tcl_Obj *slotInfo(int index, int slot, bool state);
67};
68#endif
Base class for Tcl commands.
Definition: IsActive.h:53
virtual int operator()(std::vector< Tcl_Obj * > &objv)
Definition: IsActive.cpp:58
virtual ~CIsActive()
Definition: IsActive.cpp:47
CIsActive(Tcl_Interp *pInterp, DAQ::DDAS::Configuration &config)
Definition: IsActive.cpp:42
Definition: CTclCommand.h:35
Store the system configuration information needed by Readout.
Definition: Configuration.h:88