1 #ifndef _ots_AllSupervisorInfo_h
2 #define _ots_AllSupervisorInfo_h
7 #include "otsdaq/SupervisorInfo/SupervisorDescriptorInfoBase.h"
8 #include "otsdaq/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 unsigned int progress);
49 void setSupervisorProgress(
const unsigned int&
id,
const unsigned int progress);
52 const std::map<
unsigned int ,
SupervisorInfo>& getAllSupervisorInfo(
55 return allSupervisorInfo_;
57 const SupervisorInfoMap& getAllFETypeSupervisorInfo(
void)
const
59 return allFETypeSupervisorInfo_;
61 const SupervisorInfoMap& getAllDMTypeSupervisorInfo(
void)
const
63 return allDMTypeSupervisorInfo_;
65 const SupervisorInfoMap& getAllLogbookTypeSupervisorInfo(
void)
const
67 return allLogbookTypeSupervisorInfo_;
69 const SupervisorInfoMap& getAllMacroMakerTypeSupervisorInfo(
void)
const
71 return allMacroMakerTypeSupervisorInfo_;
74 const SupervisorInfo& getSupervisorInfo(xdaq::Application* app)
const;
76 XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getGatewayDescriptor(
void)
const;
78 XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getWizardDescriptor(
void)
const;
80 std::vector<std::vector<const SupervisorInfo*>> getOrderedSupervisorDescriptors(
81 const std::string& stateMachineCommand)
const;
88 SupervisorInfoMap allFETypeSupervisorInfo_, allDMTypeSupervisorInfo_,
89 allLogbookTypeSupervisorInfo_, allMacroMakerTypeSupervisorInfo_;
91 static const bool MACROMAKER_MODE;
void init(xdaq::ApplicationContext *applicationContext)