otsdaq  v2_00_00
SupervisorDescriptorInfoBase.h
1 #ifndef _ots_SupervisorConfigurationBase_h_
2 #define _ots_SupervisorConfigurationBase_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-core/Macros/CoutHeaderMacros.h"
9 
10 #include <string>
11 #include <map>
12 
13 namespace ots
14 {
15 // key is the crate number
16 typedef std::map<xdata::UnsignedIntegerT, XDAQ_CONST_CALL xdaq::ApplicationDescriptor*> SupervisorDescriptors;
17 
19 {
20 public:
21 
23  virtual ~SupervisorDescriptorInfoBase(void);
24 
25  virtual void init(xdaq::ApplicationContext* applicationContext);
26 
27  const SupervisorDescriptors& getDataManagerDescriptors (void) const;
28  const SupervisorDescriptors& getFEDescriptors (void) const;
29  const SupervisorDescriptors& getDTCDescriptors (void) const;
30  const SupervisorDescriptors& getFEDataManagerDescriptors (void) const;
31  //const SupervisorDescriptors& getARTDAQFEDescriptors (void) const;
32  const SupervisorDescriptors& getARTDAQFEDataManagerDescriptors(void) const;
33  const SupervisorDescriptors& getARTDAQDataManagerDescriptors (void) const;
34  const SupervisorDescriptors& getARTDAQBuilderDescriptors (void) const;
35  const SupervisorDescriptors& getARTDAQAggregatorDescriptors (void) const;
36  const SupervisorDescriptors& getVisualDescriptors (void) const;
37 
38 
39  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getSupervisorDescriptor (void) const;
40  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getLogbookDescriptor (void) const;
41  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getWizardDescriptor (void) const;
42  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getDataManagerDescriptor (xdata::UnsignedIntegerT instance) const;
43  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getFEDescriptor (xdata::UnsignedIntegerT instance) const;
44  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getDTCDescriptor (xdata::UnsignedIntegerT instance) const;
45  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getFEDataManagerDescriptor (xdata::UnsignedIntegerT instance) const;
46  //xdaq::ApplicationDescriptor* getARTDAQFEDescriptor (xdata::UnsignedIntegerT instance) const;
47  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getARTDAQFEDataManagerDescriptor(xdata::UnsignedIntegerT instance) const;
48  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getARTDAQDataManagerDescriptor (xdata::UnsignedIntegerT instance) const;
49  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getARTDAQBuilderDescriptor (xdata::UnsignedIntegerT instance) const;
50  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getARTDAQAggregatorDescriptor (xdata::UnsignedIntegerT instance) const;
51  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getVisualDescriptor (xdata::UnsignedIntegerT instance) const;
52 
53  std::string getFEURL (xdata::UnsignedIntegerT instance) const;
54 
55 // std::string getARTDAQFEURL (xdata::UnsignedIntegerT instance) const;
56 // std::string getARTDAQBuilderURL (xdata::UnsignedIntegerT instance) const;
57 // std::string getARTDAQAggregatorURL (xdata::UnsignedIntegerT instance) const;
58 
59 protected:
60  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* theSupervisor_;
61  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* theWizard_;
62  XDAQ_CONST_CALL xdaq::ApplicationDescriptor* theLogbookSupervisor_;
63  SupervisorDescriptors theVisualSupervisors_;
64  SupervisorDescriptors theDataManagerSupervisors_;
65  SupervisorDescriptors theFESupervisors_;
66  SupervisorDescriptors theDTCSupervisors_;
67  SupervisorDescriptors theFEDataManagerSupervisors_;
68  //SupervisorDescriptors theARTDAQFESupervisors_;
69  SupervisorDescriptors theARTDAQFEDataManagerSupervisors_;
70  SupervisorDescriptors theARTDAQDataManagerSupervisors_;
71  SupervisorDescriptors theARTDAQBuilderSupervisors_;
72  SupervisorDescriptors theARTDAQAggregatorSupervisors_;
73 };
74 }
75 #endif