1 #ifndef _ots_AllSupervisorInfo_h
2 #define _ots_AllSupervisorInfo_h
7 #include "otsdaq/SupervisorInfo/SupervisorDescriptorInfoBase.h"
8 #include "otsdaq/SupervisorInfo/SupervisorInfo.h"
14 typedef std::map<unsigned int, const SupervisorInfo&> SupervisorInfoMap;
36 void init(xdaq::ApplicationContext* applicationContext);
40 bool isWizardMode(
void)
const {
return theWizardInfo_ ?
true :
false; }
41 bool isMacroMakerMode(
void)
const {
return AllSupervisorInfo::MACROMAKER_MODE; }
44 void setSupervisorStatus(xdaq::Application* app,
const std::string& status,
const unsigned int progress = 100,
const std::string& detail =
"");
45 void setSupervisorStatus(
const SupervisorInfo& appInfo,
const std::string& status,
const unsigned int progress = 100,
const std::string& detail =
"");
46 void setSupervisorStatus(
const unsigned int&
id,
const std::string& status,
const unsigned int progress = 100,
const std::string& detail =
"");
49 const std::map<
unsigned int ,
SupervisorInfo>& getAllSupervisorInfo(
void)
const {
return allSupervisorInfo_; }
50 const SupervisorInfoMap& getAllFETypeSupervisorInfo(
void)
const {
return allFETypeSupervisorInfo_; }
51 const SupervisorInfoMap& getAllDMTypeSupervisorInfo(
void)
const {
return allDMTypeSupervisorInfo_; }
52 const SupervisorInfoMap& getAllLogbookTypeSupervisorInfo(
void)
const {
return allLogbookTypeSupervisorInfo_; }
53 const SupervisorInfoMap& getAllMacroMakerTypeSupervisorInfo(
void)
const {
return allMacroMakerTypeSupervisorInfo_; }
55 const SupervisorInfo& getSupervisorInfo(xdaq::Application* app)
const;
57 XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getGatewayDescriptor(
void)
const;
59 XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getWizardDescriptor(
void)
const;
61 std::vector<std::vector<const SupervisorInfo*>> getOrderedSupervisorDescriptors(
const std::string& stateMachineCommand)
const;
68 SupervisorInfoMap allFETypeSupervisorInfo_, allDMTypeSupervisorInfo_, allLogbookTypeSupervisorInfo_, allMacroMakerTypeSupervisorInfo_;
70 static const bool MACROMAKER_MODE;