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;
25 void init (xdaq::ApplicationContext* applicationContext);
29 bool isWizardMode (
void)
const {
return theWizardInfo_?
true:
false; }
33 void setSupervisorStatus (xdaq::Application* app,
const std::string& status);
34 void setSupervisorStatus (
const SupervisorInfo& appInfo,
const std::string& status);
35 void setSupervisorStatus (
const unsigned int&
id,
const std::string& status);
39 const std::map<unsigned int, SupervisorInfo>& getAllSupervisorInfo (
void)
const {
return allSupervisorInfo_; }
40 const SupervisorInfoMap& getAllFETypeSupervisorInfo (
void)
const {
return allFETypeSupervisorInfo_; }
41 const SupervisorInfoMap& getAllDMTypeSupervisorInfo (
void)
const {
return allDMTypeSupervisorInfo_; }
42 const SupervisorInfoMap& getAllLogbookTypeSupervisorInfo (
void)
const {
return allLogbookTypeSupervisorInfo_; }
44 const SupervisorInfo& getSupervisorInfo (xdaq::Application* app)
const;
46 XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getGatewayDescriptor (
void)
const;
48 XDAQ_CONST_CALL xdaq::ApplicationDescriptor* getWizardDescriptor (
void)
const;
50 std::vector<const SupervisorInfo*> getOrderedSupervisorDescriptors (
const std::string& stateMachineCommand)
const;
58 std::map<unsigned int, SupervisorInfo> allSupervisorInfo_;
59 SupervisorInfoMap allFETypeSupervisorInfo_, allDMTypeSupervisorInfo_, allLogbookTypeSupervisorInfo_;