1 #ifndef _ots_AllSupervisorInfo_h
2 #define _ots_AllSupervisorInfo_h
7 #include "otsdaq-core/SupervisorInfo/SupervisorInfo.h"
8 #include "otsdaq-core/SupervisorInfo/SupervisorDescriptorInfoBase.h"
14 typedef std::map<unsigned int, const SupervisorInfo&> SupervisorInfoMap;
37 void init (xdaq::ApplicationContext* applicationContext);
41 bool isWizardMode (
void)
const {
return theWizardInfo_?
true:
false; }
45 void setSupervisorStatus (xdaq::Application* app,
const std::string& status);
46 void setSupervisorStatus (
const SupervisorInfo& appInfo,
const std::string& status);
47 void setSupervisorStatus (
const unsigned int&
id,
const std::string& status);
51 const std::map<unsigned int, SupervisorInfo>& getAllSupervisorInfo (
void)
const {
return allSupervisorInfo_; }
52 const SupervisorInfoMap& getAllFETypeSupervisorInfo (
void)
const {
return allFETypeSupervisorInfo_; }
53 const SupervisorInfoMap& getAllDMTypeSupervisorInfo (
void)
const {
return allDMTypeSupervisorInfo_; }
54 const SupervisorInfoMap& getAllLogbookTypeSupervisorInfo (
void)
const {
return allLogbookTypeSupervisorInfo_; }
56 const SupervisorInfo& getSupervisorInfo (xdaq::Application* app)
const;
58 XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getGatewayDescriptor (
void)
const;
60 XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getWizardDescriptor (
void)
const;
62 std::vector<const SupervisorInfo*> getOrderedSupervisorDescriptors (
const std::string& stateMachineCommand)
const;
70 std::map<unsigned int, SupervisorInfo> allSupervisorInfo_;
71 SupervisorInfoMap allFETypeSupervisorInfo_, allDMTypeSupervisorInfo_, allLogbookTypeSupervisorInfo_;