2 #include "otsdaq/TablePlugins/DataManagerTable.h"
4 #include "otsdaq-components/UserTableDataFormats/FEOtsUDPFSSRInterfaceTable.h"
5 #include "otsdaq/Macros/TablePluginMacros.h"
10 FEOtsUDPFSSRInterfaceTable::FEOtsUDPFSSRInterfaceTable(
void)
11 : FEInterfaceTableBase(
"FEOtsUDPFSSRInterfaceTable")
54 FEOtsUDPFSSRInterfaceTable::~FEOtsUDPFSSRInterfaceTable(
void) {}
57 void FEOtsUDPFSSRInterfaceTable::init(ConfigurationManager* configManager)
72 bool FEOtsUDPFSSRInterfaceTable::getStatus(std::string interfaceID)
const
75 TableBase::activeTableView_->getValue(
77 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
83 unsigned int FEOtsUDPFSSRInterfaceTable::getFirmwareVersion(std::string interfaceID)
const
85 unsigned int tmpFirmwareVersion;
86 TableBase::activeTableView_->getValue(
88 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
90 return tmpFirmwareVersion;
94 std::string FEOtsUDPFSSRInterfaceTable::getIPAddress(std::string interfaceID)
const
96 std::string tmpIPAddress;
97 TableBase::activeTableView_->getValue(
99 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
105 unsigned int FEOtsUDPFSSRInterfaceTable::getPort(std::string interfaceID)
const
107 unsigned int tmpPort;
108 TableBase::activeTableView_->getValue(
109 tmpPort, TableBase::activeTableView_->findRow(InterfaceID, interfaceID), Port);
114 std::string FEOtsUDPFSSRInterfaceTable::getInterfaceIPAddress(
115 std::string interfaceID)
const
117 std::string tmpInterfaceIPAddress;
118 TableBase::activeTableView_->getValue(
119 tmpInterfaceIPAddress,
120 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
122 return tmpInterfaceIPAddress;
126 unsigned int FEOtsUDPFSSRInterfaceTable::getInterfacePort(std::string interfaceID)
const
128 unsigned int tmpInterfacePort;
129 TableBase::activeTableView_->getValue(
131 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
133 return tmpInterfacePort;
137 std::string FEOtsUDPFSSRInterfaceTable::getStreamingIPAddress(
138 std::string interfaceID)
const
140 std::string tmpStreamingIPAddress;
141 TableBase::activeTableView_->getValue(
142 tmpStreamingIPAddress,
143 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
145 return tmpStreamingIPAddress;
149 unsigned int FEOtsUDPFSSRInterfaceTable::getStreamingPort(std::string interfaceID)
const
151 unsigned int tmpStreamingPort;
152 TableBase::activeTableView_->getValue(
154 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
156 return tmpStreamingPort;
160 std::string FEOtsUDPFSSRInterfaceTable::getClockSelect(std::string interfaceID)
const
162 std::string tmpClockSelect;
163 TableBase::activeTableView_->getValue(
165 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
167 return tmpClockSelect;
171 double FEOtsUDPFSSRInterfaceTable::getClockSpeedMHz(std::string interfaceID)
const
173 double tmpClockSpeedMHz;
174 TableBase::activeTableView_->getValue(
176 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
178 return tmpClockSpeedMHz;
182 bool FEOtsUDPFSSRInterfaceTable::getChannelStatus(std::string interfaceID,
183 unsigned int channel)
const
189 TableBase::activeTableView_->getValue(
191 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
195 TableBase::activeTableView_->getValue(
197 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
201 TableBase::activeTableView_->getValue(
203 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
207 TableBase::activeTableView_->getValue(
209 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
213 TableBase::activeTableView_->getValue(
215 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
219 TableBase::activeTableView_->getValue(
221 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
225 __SS__ <<
"Table Error:\t"
226 <<
"OtsUDPHardware FER Channel " << std::dec << channel
227 <<
" does not exist" << std::endl;
228 __COUT_ERR__ <<
"\n" << ss.str();