1 #ifndef _ots_XDAQContextTable_h_
2 #define _ots_XDAQContextTable_h_
6 #include "otsdaq/ConfigurationInterface/ConfigurationManager.h"
7 #include "otsdaq/TableCore/TableBase.h"
19 std::string name_, type_, value_;
24 static const uint8_t DEFAULT_PRIORITY;
26 std::string applicationGroupID_;
27 std::string applicationUID_;
31 unsigned int instance_;
35 std::string sourceConfig_;
36 std::map<std::string , uint8_t >
37 stateMachineCommandPriority_;
39 std::vector<XDAQApplicationProperty> properties_;
44 std::string contextUID_;
45 std::string sourceConfig_;
50 std::vector<XDAQApplication> applications_;
64 std::string getContextUID (
const std::string& url)
const;
65 std::string getApplicationUID (
const std::string& url,
unsigned int id)
const;
66 std::string getContextOfApplication (
ConfigurationManager* configManager,
const std::string& appUID)
const;
69 const std::vector<XDAQContext>& getContexts (
void)
const {
return contexts_; }
74 std::string getContextAddress (
const std::string& contextUID =
"X",
bool wantHttp =
false)
const;
77 const XDAQContext* getTheARTDAQSupervisorContext (
void)
const;
80 std::vector<XDAQContext> contexts_;
81 unsigned int artdaqSupervisorContext_;
87 std::string
const colContextUID_ =
"ContextUID";
88 std::string
const colLinkToApplicationTable_ =
"LinkToApplicationTable";
89 std::string
const colLinkToApplicationGroupID_ =
"LinkToApplicationGroupID";
90 std::string
const colStatus_ = TableViewColumnInfo::COL_NAME_STATUS;
91 std::string
const colId_ =
"Id";
92 std::string
const colAddress_ =
"Address";
93 std::string
const colPort_ =
"Port";
99 std::string
const colApplicationGroupID_ =
"ApplicationGroupID";
100 std::string
const colApplicationUID_ =
"ApplicationUID";
101 std::string
const colLinkToSupervisorTable_ =
"LinkToSupervisorTable";
102 std::string
const colLinkToSupervisorUID_ =
"LinkToSupervisorUID";
103 std::string
const colStatus_ = TableViewColumnInfo::COL_NAME_STATUS;
104 std::string
const colClass_ =
"Class";
105 std::string
const colId_ =
"Id";
106 std::string
const colInstance_ =
"Instance";
107 std::string
const colNetwork_ =
"Network";
108 std::string
const colGroup_ =
"Group";
109 std::string
const colModule_ =
"Module";
110 std::string
const colConfigurePriority_ =
"ConfigurePriority";
111 std::string
const colStartPriority_ =
"StartPriority";
112 std::string
const colStopPriority_ =
"StopPriority";
113 std::string
const colLinkToPropertyTable_ =
"LinkToPropertyTable";
114 std::string
const colLinkToPropertyGroupID_ =
"LinkToPropertyGroupID";
121 std::string
const colPropertyGroupID_ =
"PropertyGroupID";
122 std::string
const colPropertyUID_ =
"UID";
123 std::string
const colStatus_ = TableViewColumnInfo::COL_NAME_STATUS;
124 std::string
const colPropertyName_ =
"PropertyName";
125 std::string
const colPropertyType_ =
"PropertyType";
126 std::string
const colPropertyValue_ =
"PropertyValue";
132 static const std::set<std::string> FETypeClassNames_, DMTypeClassNames_,
133 LogbookTypeClassNames_, MacroMakerTypeClassNames_, ChatTypeClassNames_,
134 ConsoleTypeClassNames_, ConfigurationGUITypeClassNames_;
135 static const std::string GATEWAY_SUPERVISOR_CLASS, WIZARD_SUPERVISOR_CLASS,
136 DEPRECATED_SUPERVISOR_CLASS;
void outputXDAQXML(std::ostream &out)