1 #include "otsdaq-demo/SlowControlsInterfacePlugins/SlowControlsInterfaceTemplate.h"
2 #include "otsdaq/Macros/SlowControlsPluginMacros.h"
7 SlowControlsInterfaceTemplate::SlowControlsInterfaceTemplate(
8 const std::string& pluginType,
9 const std::string& interfaceUID,
10 const ConfigurationTree& theXDAQContextConfigTree,
11 const std::string& controlsConfigurationPath)
17 : SlowControlsVInterface(
18 pluginType, interfaceUID, theXDAQContextConfigTree, controlsConfigurationPath)
23 SlowControlsInterfaceTemplate::~SlowControlsInterfaceTemplate() { destroy(); }
26 void SlowControlsInterfaceTemplate::initialize() {}
29 void SlowControlsInterfaceTemplate::destroy() {}
32 std::vector<std::string > SlowControlsInterfaceTemplate::getChannelList()
38 std::string SlowControlsInterfaceTemplate::getList(
const std::string& )
42 return (std::string)
"list";
46 void SlowControlsInterfaceTemplate::subscribe(
const std::string& ) {}
49 void SlowControlsInterfaceTemplate::subscribeJSON(
const std::string& ) {}
52 void SlowControlsInterfaceTemplate::unsubscribe(
const std::string& ) {}
55 std::array<std::string, 4> SlowControlsInterfaceTemplate::getCurrentValue(
58 return {
"a",
"b",
"c",
"d"};
62 std::array<std::string, 9> SlowControlsInterfaceTemplate::getSettings(
const std::string& )
64 return {
"a",
"b",
"c",
"d",
"e",
"f",
"g",
"h",
"i"};
68 std::vector<std::vector<std::string>> SlowControlsInterfaceTemplate::getLastAlarms(
const std::string& )
70 return {std::vector<std::string>({
"a",
"b",
"c",
"d",
"e"}),
71 std::vector<std::string>({
"b",
"b",
"c",
"d",
"e"})};
75 std::vector<std::vector<std::string>> SlowControlsInterfaceTemplate::getAlarmsLog(
const std::string& )
77 return {std::vector<std::string>({
"a",
"b",
"c",
"d",
"e"}),
78 std::vector<std::string>({
"b",
"b",
"c",
"d",
"e"})};
82 std::vector<std::vector<std::string>> SlowControlsInterfaceTemplate::checkAlarmNotifications()
84 return {std::vector<std::string>({
"a",
"b",
"c",
"d",
"e"}),
85 std::vector<std::string>({
"b",
"b",
"c",
"d",
"e"})};
89 std::vector<std::vector<std::string>> SlowControlsInterfaceTemplate::getChannelHistory(
92 return {std::vector<std::string>({
"a",
"b",
"c",
"d",
"e"}),
93 std::vector<std::string>({
"b",
"b",
"c",
"d",
"e"}),
94 std::vector<std::string>({
"c",
"b",
"c",
"d",
"e"}),
95 std::vector<std::string>({
"d",
"b",
"c",
"d",
"e"}),
96 std::vector<std::string>({
"e",
"b",
"c",
"d",
"e"}),
97 std::vector<std::string>({
"f",
"b",
"c",
"d",
"e"}),
98 std::vector<std::string>({
"g",
"b",
"c",
"d",
"e"}),
99 std::vector<std::string>({
"h",
"b",
"c",
"d",
"e"}),
100 std::vector<std::string>({
"i",
"b",
"c",
"d",
"e"}),
101 std::vector<std::string>({
"j",
"b",
"c",
"d",
"e"})};
105 bool SlowControlsInterfaceTemplate::running(
void)
109 __SS__ <<
"Had an error!" << __E__;