1 #ifndef _ots_AllSupervisorInfo_h
2 #define _ots_AllSupervisorInfo_h
7 #include "otsdaq-core/SupervisorInfo/SupervisorDescriptorInfoBase.h"
8 #include "otsdaq-core/SupervisorInfo/SupervisorInfo.h"
13 typedef std::map<unsigned int, const SupervisorInfo&> SupervisorInfoMap;
35 void init(xdaq::ApplicationContext* applicationContext);
39 bool isWizardMode(
void)
const {
return theWizardInfo_ ?
true :
false; }
42 void setSupervisorStatus(xdaq::Application* app,
const std::string& status);
43 void setSupervisorStatus(
const SupervisorInfo& appInfo,
const std::string& status);
44 void setSupervisorStatus(
const unsigned int&
id,
const std::string& status);
47 const std::map<unsigned int, SupervisorInfo>& getAllSupervisorInfo(
void)
const
49 return allSupervisorInfo_;
51 const SupervisorInfoMap& getAllFETypeSupervisorInfo(
void)
const
53 return allFETypeSupervisorInfo_;
55 const SupervisorInfoMap& getAllDMTypeSupervisorInfo(
void)
const
57 return allDMTypeSupervisorInfo_;
59 const SupervisorInfoMap& getAllLogbookTypeSupervisorInfo(
void)
const
61 return allLogbookTypeSupervisorInfo_;
63 const SupervisorInfoMap& getAllMacroMakerTypeSupervisorInfo(
void)
const
65 return allMacroMakerTypeSupervisorInfo_;
68 const SupervisorInfo& getSupervisorInfo(xdaq::Application* app)
const;
70 XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getGatewayDescriptor(
void)
const;
72 XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getWizardDescriptor(
void)
const;
74 std::vector<std::vector<const SupervisorInfo*>> getOrderedSupervisorDescriptors(
75 const std::string& stateMachineCommand)
const;
81 std::map<unsigned int, SupervisorInfo> allSupervisorInfo_;
82 SupervisorInfoMap allFETypeSupervisorInfo_, allDMTypeSupervisorInfo_,
83 allLogbookTypeSupervisorInfo_, allMacroMakerTypeSupervisorInfo_;
void init(xdaq::ApplicationContext *applicationContext)