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; }
40 bool isMacroMakerMode(
void)
const {
return AllSupervisorInfo::MACROMAKER_MODE; }
43 void setSupervisorStatus(xdaq::Application* app,
const std::string& status);
44 void setSupervisorStatus(
const SupervisorInfo& appInfo,
const std::string& status);
45 void setSupervisorStatus(
const unsigned int&
id,
const std::string& status);
48 const std::map<unsigned int, SupervisorInfo>& getAllSupervisorInfo(
void)
const
50 return allSupervisorInfo_;
52 const SupervisorInfoMap& getAllFETypeSupervisorInfo(
void)
const
54 return allFETypeSupervisorInfo_;
56 const SupervisorInfoMap& getAllDMTypeSupervisorInfo(
void)
const
58 return allDMTypeSupervisorInfo_;
60 const SupervisorInfoMap& getAllLogbookTypeSupervisorInfo(
void)
const
62 return allLogbookTypeSupervisorInfo_;
64 const SupervisorInfoMap& getAllMacroMakerTypeSupervisorInfo(
void)
const
66 return allMacroMakerTypeSupervisorInfo_;
69 const SupervisorInfo& getSupervisorInfo(xdaq::Application* app)
const;
71 XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getGatewayDescriptor(
void)
const;
73 XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getWizardDescriptor(
void)
const;
75 std::vector<std::vector<const SupervisorInfo*>> getOrderedSupervisorDescriptors(
76 const std::string& stateMachineCommand)
const;
82 std::map<unsigned int, SupervisorInfo> allSupervisorInfo_;
83 SupervisorInfoMap allFETypeSupervisorInfo_, allDMTypeSupervisorInfo_,
84 allLogbookTypeSupervisorInfo_, allMacroMakerTypeSupervisorInfo_;
86 static const bool MACROMAKER_MODE;
void init(xdaq::ApplicationContext *applicationContext)