2 #include "otsdaq/TablePlugins/DataManagerTable.h"
4 #include "otsdaq-components/UserTableDataFormats/FEPurdueFSSRInterfaceTable.h"
5 #include "otsdaq/Macros/TablePluginMacros.h"
10 FEPurdueFSSRInterfaceTable::FEPurdueFSSRInterfaceTable(
void)
11 : FEInterfaceTableBase(
"FEPurdueFSSRInterfaceTable")
44 FEPurdueFSSRInterfaceTable::~FEPurdueFSSRInterfaceTable(
void) {}
47 void FEPurdueFSSRInterfaceTable::init(ConfigurationManager* configManager)
62 bool FEPurdueFSSRInterfaceTable::getStatus(std::string interfaceID)
const
65 TableBase::activeTableView_->getValue(
67 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
73 unsigned int FEPurdueFSSRInterfaceTable::getFirmwareVersion(std::string interfaceID)
const
75 unsigned int tmpFirmwareVersion;
76 TableBase::activeTableView_->getValue(
78 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
80 return tmpFirmwareVersion;
84 std::string FEPurdueFSSRInterfaceTable::getIPAddress(std::string interfaceID)
const
86 std::string tmpIPAddress;
87 TableBase::activeTableView_->getValue(
89 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
95 unsigned int FEPurdueFSSRInterfaceTable::getPort(std::string interfaceID)
const
98 TableBase::activeTableView_->getValue(
99 tmpPort, TableBase::activeTableView_->findRow(InterfaceID, interfaceID), Port);
104 std::string FEPurdueFSSRInterfaceTable::getInterfaceIPAddress(
105 std::string interfaceID)
const
107 std::string tmpInterfaceIPAddress;
108 TableBase::activeTableView_->getValue(
109 tmpInterfaceIPAddress,
110 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
112 return tmpInterfaceIPAddress;
116 unsigned int FEPurdueFSSRInterfaceTable::getInterfacePort(std::string interfaceID)
const
118 unsigned int tmpInterfacePort;
119 TableBase::activeTableView_->getValue(
121 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
123 return tmpInterfacePort;
127 std::string FEPurdueFSSRInterfaceTable::getStreamingIPAddress(
128 std::string interfaceID)
const
130 std::string tmpStreamingIPAddress;
131 TableBase::activeTableView_->getValue(
132 tmpStreamingIPAddress,
133 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
135 return tmpStreamingIPAddress;
139 unsigned int FEPurdueFSSRInterfaceTable::getStreamingPort(std::string interfaceID)
const
141 unsigned int tmpStreamingPort;
142 TableBase::activeTableView_->getValue(
144 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
146 return tmpStreamingPort;
150 std::string FEPurdueFSSRInterfaceTable::getClockSelect(std::string interfaceID)
const
152 std::string tmpClockSelect;
153 TableBase::activeTableView_->getValue(
155 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
157 return tmpClockSelect;
161 double FEPurdueFSSRInterfaceTable::getClockSpeedMHz(std::string interfaceID)
const
163 double tmpClockSpeedMHz;
164 TableBase::activeTableView_->getValue(
166 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
168 return tmpClockSpeedMHz;
172 bool FEPurdueFSSRInterfaceTable::getChannelStatus(std::string interfaceID,
173 unsigned int channel)
const
179 TableBase::activeTableView_->getValue(
181 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
185 TableBase::activeTableView_->getValue(
187 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
191 TableBase::activeTableView_->getValue(
193 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
197 TableBase::activeTableView_->getValue(
199 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
203 TableBase::activeTableView_->getValue(
205 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
209 TableBase::activeTableView_->getValue(
211 TableBase::activeTableView_->findRow(InterfaceID, interfaceID),
215 __SS__ <<
"Table Error:\t"
216 <<
"OtsUDPHardware FER Channel " << std::dec << channel
217 <<
" does not exist" << std::endl;
218 __COUT_ERR__ <<
"\n" << ss.str();