otsdaq  v2_04_02
SupervisorDescriptorInfoBase.h
1 #ifndef _ots_SupervisorTableBase_h_
2 #define _ots_SupervisorTableBase_h_
3 
4 #pragma GCC diagnostic push
5 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
6 #include <xdaq/Application.h>
7 #pragma GCC diagnostic pop
8 #include "otsdaq/Macros/CoutMacros.h"
9 #include "otsdaq/Macros/XDAQApplicationMacros.h"
10 
11 #include <map>
12 #include <string>
13 
14 namespace ots
15 {
16 // key is the crate number
17 typedef std::map<xdata::UnsignedIntegerT, XDAQ_CONST_CALL xdaq::ApplicationDescriptor*>
18  SupervisorDescriptors;
19 
21 {
22  public:
24  virtual ~SupervisorDescriptorInfoBase(void);
25 
26  virtual void init(xdaq::ApplicationContext* applicationContext);
27 
28  const SupervisorDescriptors& getDataManagerDescriptors(void) const;
29  const SupervisorDescriptors& getFEDescriptors(void) const;
30  const SupervisorDescriptors& getDTCDescriptors(void) const;
31  const SupervisorDescriptors& getFEDataManagerDescriptors(void) const;
32  // const SupervisorDescriptors& getARTDAQFEDescriptors (void) const;
33  const SupervisorDescriptors& getARTDAQFEDataManagerDescriptors(void) const;
34  const SupervisorDescriptors& getARTDAQDataManagerDescriptors(void) const;
35  const SupervisorDescriptors& getARTDAQBuilderDescriptors(void) const;
36  const SupervisorDescriptors& getARTDAQDataLoggerDescriptors(void) const;
37  const SupervisorDescriptors& getARTDAQDispatcherDescriptors(void) const;
38  const SupervisorDescriptors& getVisualDescriptors(void) const;
39 
40  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getSupervisorDescriptor(void) const;
41  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getLogbookDescriptor(void) const;
42  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getWizardDescriptor(void) const;
43  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getDataManagerDescriptor(
44  xdata::UnsignedIntegerT instance) const;
45  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getFEDescriptor(
46  xdata::UnsignedIntegerT instance) const;
47  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getDTCDescriptor(
48  xdata::UnsignedIntegerT instance) const;
49  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getFEDataManagerDescriptor(
50  xdata::UnsignedIntegerT instance) const;
51  // xdaq::ApplicationDescriptor* getARTDAQFEDescriptor
52  // (xdata::UnsignedIntegerT instance) const;
53  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getARTDAQFEDataManagerDescriptor(
54  xdata::UnsignedIntegerT instance) const;
55  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getARTDAQDataManagerDescriptor(
56  xdata::UnsignedIntegerT instance) const;
57  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getARTDAQBuilderDescriptor(
58  xdata::UnsignedIntegerT instance) const;
59  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getARTDAQDataLoggerDescriptor(
60  xdata::UnsignedIntegerT instance) const;
61  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getARTDAQDispatcherDescriptor(
62  xdata::UnsignedIntegerT instance) const;
63  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getVisualDescriptor(
64  xdata::UnsignedIntegerT instance) const;
65 
66  std::string getFEURL(xdata::UnsignedIntegerT instance) const;
67 
68  // std::string getARTDAQFEURL (xdata::UnsignedIntegerT instance) const;
69  // std::string getARTDAQBuilderURL (xdata::UnsignedIntegerT instance) const;
70  // std::string getARTDAQDataLoggerURL (xdata::UnsignedIntegerT instance) const;
71  // std::string getARTDAQDispatcherURL (xdata::UnsignedIntegerT instance) const;
72 
73  protected:
74  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* theSupervisor_;
75  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* theWizard_;
76  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* theLogbookSupervisor_;
77  SupervisorDescriptors theVisualSupervisors_;
78  SupervisorDescriptors theDataManagerSupervisors_;
79  SupervisorDescriptors theFESupervisors_;
80  SupervisorDescriptors theDTCSupervisors_;
81  SupervisorDescriptors theFEDataManagerSupervisors_;
82  // SupervisorDescriptors theARTDAQFESupervisors_;
83  SupervisorDescriptors theARTDAQFEDataManagerSupervisors_;
84  SupervisorDescriptors theARTDAQDataManagerSupervisors_;
85  SupervisorDescriptors theARTDAQBuilderSupervisors_;
86  SupervisorDescriptors theARTDAQDataLoggerSupervisors_;
87  SupervisorDescriptors theARTDAQDispatcherSupervisors_;
88 };
89 } // namespace ots
90 #endif